This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 121936
Collapse All | Expand All

(-)railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsProjectGenerator.java (-1 / +4 lines)
Lines 54-59 Link Here
54
import org.netbeans.api.ruby.platform.RubyInstallation;
54
import org.netbeans.api.ruby.platform.RubyInstallation;
55
import org.netbeans.editor.BaseDocument;
55
import org.netbeans.editor.BaseDocument;
56
import org.netbeans.modules.ruby.NbUtilities;
56
import org.netbeans.modules.ruby.NbUtilities;
57
import org.netbeans.modules.ruby.RubyUtils;
57
import org.netbeans.modules.ruby.railsprojects.ui.wizards.PanelOptionsVisual;
58
import org.netbeans.modules.ruby.railsprojects.ui.wizards.PanelOptionsVisual;
58
import org.netbeans.modules.ruby.rubyproject.RakeTargetsAction;
59
import org.netbeans.modules.ruby.rubyproject.RakeTargetsAction;
59
import org.netbeans.modules.ruby.rubyproject.execution.DirectoryFileLocator;
60
import org.netbeans.modules.ruby.rubyproject.execution.DirectoryFileLocator;
Lines 108-114 Link Here
108
        
109
        
109
        // Run Rails to generate the appliation skeleton
110
        // Run Rails to generate the appliation skeleton
110
        if (create) {
111
        if (create) {
111
            boolean runThroughRuby = RubyInstallation.getInstance().getVersion("rails") != null; // NOI18N
112
            FileObject rails = FileUtil.toFileObject(new File(RubyInstallation.getInstance().getRails()));
113
            boolean runThroughRuby = rails != null ? RubyUtils.isRubyFile(rails) : false;
114
112
            ExecutionDescriptor desc = null;
115
            ExecutionDescriptor desc = null;
113
            String displayName = NbBundle.getMessage(RailsProjectGenerator.class, "GenerateRails");
116
            String displayName = NbBundle.getMessage(RailsProjectGenerator.class, "GenerateRails");
114
117
(-)editing/src/org/netbeans/modules/ruby/RubyMimeResolver.java (-1 / +1 lines)
Lines 62-68 Link Here
62
    public static final String RUBY_MIME_TYPE = "text/x-ruby"; // application/x-ruby is also used a fair bit.
62
    public static final String RUBY_MIME_TYPE = "text/x-ruby"; // application/x-ruby is also used a fair bit.
63
    
63
    
64
    /** Number of bytes to sniff from the file headers */
64
    /** Number of bytes to sniff from the file headers */
65
    private static final int HEADER_LENGTH = 20;
65
    private static final int HEADER_LENGTH = 40;
66
    
66
    
67
    public RubyMimeResolver() {
67
    public RubyMimeResolver() {
68
    }
68
    }

Return to bug 121936