mvcgen 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/mvcgen/generator.rb +4 -5
 - data/lib/mvcgen/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: '09e348a5d239bd4d2f3a3a54f99d35ce288bbe85'
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 9d7733788f1c9517ee34780551629c0d1275a20b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3ce0793aacd410a06389bd7d16bf06eb69f4b8f57dc868f7d1af193cc02b42b855f63edb936005a919f8b2055a091191a3f8925c23ebfe1f3bf03deae1b21f26
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: c1f9aa47a340c96e78e5bd446118437dd45c246020d2727a6a5e694a5de4e34559d410c768bedfdfad09ebda90e28ce4673a582d30e1a2bf45da5c43f38c0233
         
     | 
    
        data/lib/mvcgen/generator.rb
    CHANGED
    
    | 
         @@ -1,6 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require 'fileutils'
         
     | 
| 
       2 
2 
     | 
    
         
             
            require 'xcodeproj'
         
     | 
| 
       3 
     | 
    
         
            -
            require 'pathname'
         
     | 
| 
       4 
3 
     | 
    
         | 
| 
       5 
4 
     | 
    
         
             
            module MVCgen
         
     | 
| 
       6 
5 
     | 
    
         
             
            	# Cosntants
         
     | 
| 
         @@ -36,10 +35,10 @@ module MVCgen 
     | 
|
| 
       36 
35 
     | 
    
         | 
| 
       37 
36 
     | 
    
         
             
            		def self.add_files_togroup(project, group, target)
         
     | 
| 
       38 
37 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
            			if File.exist?(File.realpath(group. 
     | 
| 
      
 38 
     | 
    
         
            +
            			if File.exist?(File.realpath(group.real_path) 
         
     | 
| 
       40 
39 
     | 
    
         | 
| 
       41 
     | 
    
         
            -
            				Dir.foreach(group. 
     | 
| 
       42 
     | 
    
         
            -
            					filePath = File.join(group. 
     | 
| 
      
 40 
     | 
    
         
            +
            				Dir.foreach(group.real_path) do |entry|
         
     | 
| 
      
 41 
     | 
    
         
            +
            					filePath = File.join(group.real_path, entry)
         
     | 
| 
       43 
42 
     | 
    
         | 
| 
       44 
43 
     | 
    
         
             
            					# puts filePath
         
     | 
| 
       45 
44 
     | 
    
         | 
| 
         @@ -77,7 +76,7 @@ module MVCgen 
     | 
|
| 
       77 
76 
     | 
    
         | 
| 
       78 
77 
     | 
    
         
             
            						subGroup = group.find_subpath(entry, true)
         
     | 
| 
       79 
78 
     | 
    
         
             
            						subGroup.set_source_tree(group.source_tree)
         
     | 
| 
       80 
     | 
    
         
            -
            						subGroup.set_path(File.join(group. 
     | 
| 
      
 79 
     | 
    
         
            +
            						subGroup.set_path(File.join(group.real_path, entry))
         
     | 
| 
       81 
80 
     | 
    
         
             
            						add_files_togroup(project, target, subGroup)
         
     | 
| 
       82 
81 
     | 
    
         | 
| 
       83 
82 
     | 
    
         
             
            					end
         
     | 
    
        data/lib/mvcgen/version.rb
    CHANGED