rvmpow 0.0.2 → 0.0.3
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/README.md +0 -2
 - data/lib/rvmpow/version.rb +1 -1
 - data/lib/rvmpow.rb +11 -3
 - data/rvmpow.gemspec +2 -3
 - metadata +7 -6
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 836ec57e520bb1d5f8e2851fe201ece9a2b618ae
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 0e3c460194224630069e989158077bdf40a5b2e2
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e21f27ede9d3d0037f43c498f50420077dcc4bb5bd79d646a31f7aa7330a9cd6910a8c9379e78ed2dfb996e20abffe934f283ef058bf74ce3f755d52ee6f58a3
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9eca16b2c0e5cd4a483546dfdb7e3de445684645b5a484a914ec79f06151795e8f64514015f8a6b9a893a61144eb0bee3179761a309abb849c33c0d613803eec
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -15,8 +15,6 @@ 
     | 
|
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
            I tested on newly created and updated rails apps, a bare minimal rack "*app*" and a bare minimal Sinatra app. Feedback is more than welcome.
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            `rvmpow` **will fail** if you are not using a gemset ([you should](https://rvm.io/gemsets) ;-) If this is an issue for enough people, I'll fix it, but I don't think it's good practice to have all your gems in your default gemset.
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
18 
     | 
    
         
             
            If you are already specifying the ruby version and gemset via .rvmrc or .ruby-version/.ruby-gemset or in your Gemfile, be aware that rvmpow uses Gemfile (which is a good thing  if you're going to deploy to [heroku](https://www.heroku.com/) for instance). `rvmpow` will not change the gemfile if ruby and gemset information is present. I advise to remove it prior to running `rvmpow`. If you use one of the other metioned methods, move or delete the files prior to running `rvmpow`.
         
     | 
| 
       21 
19 
     | 
    
         | 
| 
       22 
20 
     | 
    
         
             
            ## Examples
         
     | 
    
        data/lib/rvmpow/version.rb
    CHANGED
    
    
    
        data/lib/rvmpow.rb
    CHANGED
    
    | 
         @@ -141,9 +141,17 @@ module RvmPow 
     | 
|
| 
       141 
141 
     | 
    
         
             
            			# @return [Hash]
         
     | 
| 
       142 
142 
     | 
    
         
             
            			def rvmInfo
         
     | 
| 
       143 
143 
     | 
    
         
             
            				rvm = {}
         
     | 
| 
       144 
     | 
    
         
            -
             
     | 
| 
       145 
     | 
    
         
            -
            				 
     | 
| 
       146 
     | 
    
         
            -
            				 
     | 
| 
      
 144 
     | 
    
         
            +
             
     | 
| 
      
 145 
     | 
    
         
            +
            				rg = `rvm-prompt`
         
     | 
| 
      
 146 
     | 
    
         
            +
            				if !rg.include?('@')
         
     | 
| 
      
 147 
     | 
    
         
            +
            					rvm[:ruby] = rg.chomp
         
     | 
| 
      
 148 
     | 
    
         
            +
            					rvm[:gemset] = ''
         
     | 
| 
      
 149 
     | 
    
         
            +
            				else
         
     | 
| 
      
 150 
     | 
    
         
            +
            					rvmArray = rg.chomp.split('@')
         
     | 
| 
      
 151 
     | 
    
         
            +
            					rvm[:ruby] = rvmArray[0].split('-')[1]
         
     | 
| 
      
 152 
     | 
    
         
            +
            					rvm[:gemset] = rvmArray[1]
         
     | 
| 
      
 153 
     | 
    
         
            +
            				end
         
     | 
| 
      
 154 
     | 
    
         
            +
             
     | 
| 
       147 
155 
     | 
    
         
             
            				rvm
         
     | 
| 
       148 
156 
     | 
    
         
             
            			end
         
     | 
| 
       149 
157 
     | 
    
         | 
    
        data/rvmpow.gemspec
    CHANGED
    
    | 
         @@ -8,9 +8,8 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       8 
8 
     | 
    
         
             
              spec.version       = RvmPow::VERSION
         
     | 
| 
       9 
9 
     | 
    
         
             
              spec.authors       = ["Olivier Robert"]
         
     | 
| 
       10 
10 
     | 
    
         
             
              spec.email         = ["robby57@gmail.com"]
         
     | 
| 
       11 
     | 
    
         
            -
              spec.summary       =  
     | 
| 
       12 
     | 
    
         
            -
              spec.description   =  
     | 
| 
       13 
     | 
    
         
            -
            "]
         
     | 
| 
      
 11 
     | 
    
         
            +
              spec.summary       = %q{Sets up pow (http://pow.cx/) for your rake app}
         
     | 
| 
      
 12 
     | 
    
         
            +
              spec.description   = %q{Pow (http://pow.cx) needs to know what ruby and gemset is being used. rvm users can provide this information manually (http://rvm.io/integration/pow) or install `rvmpow` and it'll handle it for you, including adding the new configuration file to .gitignore and linking the new app for immediate browsing.}
         
     | 
| 
       14 
13 
     | 
    
         
             
              spec.homepage      = "https://github.com/olibob/rvmpow"
         
     | 
| 
       15 
14 
     | 
    
         
             
              spec.license       = "MIT"
         
     | 
| 
       16 
15 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rvmpow
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Olivier Robert
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2014-05- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-05-06 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: thor
         
     | 
| 
         @@ -66,10 +66,10 @@ dependencies: 
     | 
|
| 
       66 
66 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       67 
67 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       68 
68 
     | 
    
         
             
                    version: 2.14.1
         
     | 
| 
       69 
     | 
    
         
            -
            description:  
     | 
| 
      
 69 
     | 
    
         
            +
            description: Pow (http://pow.cx) needs to know what ruby and gemset is being used.
         
     | 
| 
       70 
70 
     | 
    
         
             
              rvm users can provide this information manually (http://rvm.io/integration/pow)
         
     | 
| 
       71 
     | 
    
         
            -
              or install `rvmpow` and it' 
     | 
| 
       72 
     | 
    
         
            -
              file to .gitignore and linking the new app for immediate browsing 
     | 
| 
      
 71 
     | 
    
         
            +
              or install `rvmpow` and it'll handle it for you, including adding the new configuration
         
     | 
| 
      
 72 
     | 
    
         
            +
              file to .gitignore and linking the new app for immediate browsing.
         
     | 
| 
       73 
73 
     | 
    
         
             
            email:
         
     | 
| 
       74 
74 
     | 
    
         
             
            - robby57@gmail.com
         
     | 
| 
       75 
75 
     | 
    
         
             
            executables:
         
     | 
| 
         @@ -114,7 +114,8 @@ rubyforge_project: 
     | 
|
| 
       114 
114 
     | 
    
         
             
            rubygems_version: 2.2.2
         
     | 
| 
       115 
115 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       116 
116 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       117 
     | 
    
         
            -
            summary:  
     | 
| 
      
 117 
     | 
    
         
            +
            summary: Sets up pow (http://pow.cx/) for your rake app
         
     | 
| 
       118 
118 
     | 
    
         
             
            test_files:
         
     | 
| 
       119 
119 
     | 
    
         
             
            - spec/lib/rvmpow_spec.rb
         
     | 
| 
       120 
120 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
      
 121 
     | 
    
         
            +
            has_rdoc: 
         
     |