nimbleshop_core 0.0.4.beta1 → 0.0.4
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.
| 
         @@ -60,9 +60,17 @@ module Nimbleshop 
     | 
|
| 
       60 
60 
     | 
    
         
             
                  run 'bundle install'
         
     | 
| 
       61 
61 
     | 
    
         
             
                end
         
     | 
| 
       62 
62 
     | 
    
         | 
| 
      
 63 
     | 
    
         
            +
                def handle_localtunnel_callback_file
         
     | 
| 
      
 64 
     | 
    
         
            +
                  template "config/localtunnel_callback", "#{destination_path}/.localtunnel_callback"
         
     | 
| 
      
 65 
     | 
    
         
            +
             
     | 
| 
      
 66 
     | 
    
         
            +
                  # make the file executable
         
     | 
| 
      
 67 
     | 
    
         
            +
                  FileUtils.chmod 0755, File.expand_path("#{destination_path}/.localtunnel_callback"), :verbose => true
         
     | 
| 
      
 68 
     | 
    
         
            +
                end
         
     | 
| 
      
 69 
     | 
    
         
            +
             
     | 
| 
       63 
70 
     | 
    
         
             
                def copy_files!
         
     | 
| 
       64 
71 
     | 
    
         
             
                  handle_localtunnel_callback_file
         
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
      
 73 
     | 
    
         
            +
                  template "config/nimbleshop.yml", "#{destination_path}/config/nimbleshop.yml"
         
     | 
| 
       66 
74 
     | 
    
         | 
| 
       67 
75 
     | 
    
         
             
                  template "config/initializers/cache_images.rb", "#{destination_path}/config/initializers/cache_images.rb"
         
     | 
| 
       68 
76 
     | 
    
         
             
                  template "config/initializers/carrierwave.rb",  "#{destination_path}/config/initializers/carrierwave.rb"
         
     | 
| 
         @@ -75,19 +83,5 @@ module Nimbleshop 
     | 
|
| 
       75 
83 
     | 
    
         
             
                  @destination_path ||= Pathname.new(self.destination_root)
         
     | 
| 
       76 
84 
     | 
    
         
             
                end
         
     | 
| 
       77 
85 
     | 
    
         | 
| 
       78 
     | 
    
         
            -
                # do not use template method to copy the file. template method actually executes the code
         
     | 
| 
       79 
     | 
    
         
            -
                #  <%= ENV['S3_ACCESS_KEY_ID'] %> inside nimbleshop.yml rather than copying that code
         
     | 
| 
       80 
     | 
    
         
            -
                def handle_nimbleshop_yml_file
         
     | 
| 
       81 
     | 
    
         
            -
                  from = File.expand_path('../templates/config/nimbleshop.yml', __FILE__)
         
     | 
| 
       82 
     | 
    
         
            -
                  FileUtils.cp from,  "#{destination_path}/config/nimbleshop.yml"
         
     | 
| 
       83 
     | 
    
         
            -
                end
         
     | 
| 
       84 
     | 
    
         
            -
             
     | 
| 
       85 
     | 
    
         
            -
                def handle_localtunnel_callback_file
         
     | 
| 
       86 
     | 
    
         
            -
                  template "config/localtunnel_callback", "#{destination_path}/.localtunnel_callback"
         
     | 
| 
       87 
     | 
    
         
            -
             
     | 
| 
       88 
     | 
    
         
            -
                  # make the file executable
         
     | 
| 
       89 
     | 
    
         
            -
                  FileUtils.chmod 0755, File.expand_path("#{destination_path}/.localtunnel_callback"), :verbose => true
         
     | 
| 
       90 
     | 
    
         
            -
                end
         
     | 
| 
       91 
     | 
    
         
            -
             
     | 
| 
       92 
86 
     | 
    
         
             
              end
         
     | 
| 
       93 
87 
     | 
    
         
             
            end
         
     | 
| 
         @@ -2,8 +2,9 @@ if Nimbleshop.config.use_s3 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
              unless bucket_name = Nimbleshop.config.s3.bucket_name
         
     | 
| 
       4 
4 
     | 
    
         
             
                msg = %Q{
         
     | 
| 
       5 
     | 
    
         
            -
                  This application's #{Rails.env} environment is configured to use amazon s3.
         
     | 
| 
       6 
     | 
    
         
            -
                  However bucket_name to use is not specified at config/ 
     | 
| 
      
 5 
     | 
    
         
            +
                  This application's #{Rails.env} environment is configured to use amazon s3. 
         
     | 
| 
      
 6 
     | 
    
         
            +
                  However bucket_name to use is not specified at config/application.yml .
         
     | 
| 
      
 7 
     | 
    
         
            +
                  Please check guide( link here) on how to configure application to use S3.
         
     | 
| 
       7 
8 
     | 
    
         
             
                }
         
     | 
| 
       8 
9 
     | 
    
         | 
| 
       9 
10 
     | 
    
         
             
                raise msg
         
     | 
    
        data/lib/nimbleshop/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,15 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: nimbleshop_core
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0.4 
     | 
| 
       5 
     | 
    
         
            -
              prerelease:  
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.4
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
       8 
8 
     | 
    
         
             
            - Neeraj Singh
         
     | 
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2012-07- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2012-07-11 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: rails
         
     | 
| 
         @@ -1179,9 +1179,9 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       1179 
1179 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       1180 
1180 
     | 
    
         
             
              none: false
         
     | 
| 
       1181 
1181 
     | 
    
         
             
              requirements:
         
     | 
| 
       1182 
     | 
    
         
            -
              - - ! ' 
     | 
| 
      
 1182 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
       1183 
1183 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       1184 
     | 
    
         
            -
                  version:  
     | 
| 
      
 1184 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       1185 
1185 
     | 
    
         
             
            requirements: []
         
     | 
| 
       1186 
1186 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       1187 
1187 
     | 
    
         
             
            rubygems_version: 1.8.24
         
     |