runcoderun-gem_sync 0.5.5 → 0.5.9
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.
- data/Rakefile +16 -2
- data/gem_sync.gemspec +1 -1
- data/lib/rcr/gem_sync.rb +5 -5
- data/lib/runcoderun_gems.txt +6 -0
- data/spec/gem_sync_spec.rb +5 -2
- metadata +1 -1
    
        data/Rakefile
    CHANGED
    
    | @@ -1,7 +1,9 @@ | |
| 1 | 
            -
            gem 'echoe'
         | 
| 2 1 | 
             
            require 'rubygems'
         | 
| 3 2 | 
             
            require 'echoe'
         | 
| 4 3 | 
             
            require './lib/rcr/gem_sync.rb'
         | 
| 4 | 
            +
            gem "spicycode-micronaut"
         | 
| 5 | 
            +
            require 'micronaut'
         | 
| 6 | 
            +
            require 'micronaut/rake_task'
         | 
| 5 7 |  | 
| 6 8 | 
             
            Echoe.new('gem_sync', Rcr::GemSync::VERSION) do |p|
         | 
| 7 9 | 
             
              p.rubyforge_name = 'gem_sync'
         | 
| @@ -13,7 +15,19 @@ Echoe.new('gem_sync', Rcr::GemSync::VERSION) do |p| | |
| 13 15 | 
             
              p.gemspec_format = :ruby
         | 
| 14 16 | 
             
            end
         | 
| 15 17 |  | 
| 18 | 
            +
            Micronaut::RakeTask.new(:examples)
         | 
| 19 | 
            +
            namespace :examples do  
         | 
| 20 | 
            +
              
         | 
| 21 | 
            +
              desc "Run all micronaut examples using rcov"
         | 
| 22 | 
            +
              Micronaut::RakeTask.new :coverage do |t|
         | 
| 23 | 
            +
                t.pattern = "examples/**/*_example.rb"
         | 
| 24 | 
            +
                t.rcov = true
         | 
| 25 | 
            +
                t.rcov_opts = %[--exclude "gems/*,/Library/Ruby/*,config/*" --text-summary  --sort coverage]
         | 
| 26 | 
            +
              end
         | 
| 27 | 
            +
              
         | 
| 28 | 
            +
            end
         | 
| 29 | 
            +
             | 
| 16 30 | 
             
            desc 'Load the library in an IRB session'
         | 
| 17 31 | 
             
            task :console do
         | 
| 18 32 | 
             
              sh %(irb -r lib/rcr/gem_sync.rb)
         | 
| 19 | 
            -
            end
         | 
| 33 | 
            +
            end
         | 
    
        data/gem_sync.gemspec
    CHANGED
    
    
    
        data/lib/rcr/gem_sync.rb
    CHANGED
    
    | @@ -3,7 +3,7 @@ require 'open-uri' | |
| 3 3 |  | 
| 4 4 | 
             
            module Rcr
         | 
| 5 5 | 
             
              class GemSync
         | 
| 6 | 
            -
                VERSION = '0.5. | 
| 6 | 
            +
                VERSION = '0.5.9'
         | 
| 7 7 | 
             
                GITHUB = "http://gems.github.com"
         | 
| 8 8 | 
             
                RCR_DEFAULT_GEM_LIST = File.expand_path(File.join(File.dirname(__FILE__), *%w[.. runcoderun_gems.txt]))
         | 
| 9 9 | 
             
                RCR_GITHUB_GEM_LIST =      "http://github.com/runcoderun/gem_sync/raw/master/lib/runcoderun_gems.txt"
         | 
| @@ -11,7 +11,7 @@ module Rcr | |
| 11 11 |  | 
| 12 12 | 
             
                def self.install_gems(gem_list = nil)
         | 
| 13 13 | 
             
                  gem_list = RCR_DEFAULT_GEM_LIST unless gem_list
         | 
| 14 | 
            -
                  puts "gem_list: #{gem_list.inspect}"
         | 
| 14 | 
            +
                  # puts "gem_list: #{gem_list.inspect}"
         | 
| 15 15 | 
             
                  update_self
         | 
| 16 16 | 
             
                  read_gem_list(gem_list)
         | 
| 17 17 | 
             
                  install_gems_from_list
         | 
| @@ -21,7 +21,7 @@ module Rcr | |
| 21 21 |  | 
| 22 22 | 
             
                def self.uninstall_bad_gems(gem_list)
         | 
| 23 23 | 
             
                  return unless gem_list == "__from_github__"
         | 
| 24 | 
            -
                  puts "Uninstalling any gems on the blacklist..."
         | 
| 24 | 
            +
                  # puts "Uninstalling any gems on the blacklist..."
         | 
| 25 25 | 
             
                  blacklist = open(RCR_GITHUB_GEM_BLACKLIST).read
         | 
| 26 26 | 
             
                  convert_gem_list(blacklist).each do |rubygem|
         | 
| 27 27 | 
             
                    cmd = "gem uninstall #{rubygem.name} -I -a -x"
         | 
| @@ -46,7 +46,7 @@ module Rcr | |
| 46 46 | 
             
                def self.read_gem_list(gem_list)
         | 
| 47 47 | 
             
                  list = gem_list == "__from_github__" ? RCR_GITHUB_GEM_LIST : gem_list
         | 
| 48 48 | 
             
                  fail_if_gem_list_doesnt_exist(list)
         | 
| 49 | 
            -
                  puts "Running gem_sync with list: #{list}."
         | 
| 49 | 
            +
                  # puts "Running gem_sync with list: #{list}."
         | 
| 50 50 | 
             
                  @@gem_list = open(list).read
         | 
| 51 51 | 
             
                end
         | 
| 52 52 |  | 
| @@ -111,4 +111,4 @@ module Rcr | |
| 111 111 | 
             
                end
         | 
| 112 112 |  | 
| 113 113 | 
             
              end
         | 
| 114 | 
            -
            end
         | 
| 114 | 
            +
            end
         | 
    
        data/lib/runcoderun_gems.txt
    CHANGED
    
    | @@ -33,6 +33,7 @@ context | |
| 33 33 | 
             
            crack (0.1.3)
         | 
| 34 34 | 
             
            csv-mapper (0.0.3)
         | 
| 35 35 | 
             
            cucumber (0.3.11, 0.3.0)
         | 
| 36 | 
            +
            curb
         | 
| 36 37 | 
             
            daemons (1.0.10)
         | 
| 37 38 | 
             
            dancroak-clearance (0.1.3)
         | 
| 38 39 | 
             
            dancroak-clearance-admin (0.0.1)
         | 
| @@ -50,6 +51,7 @@ dm-validations (0.9.11) | |
| 50 51 | 
             
            dnsruby (1.26, 1.24, 1.2)
         | 
| 51 52 | 
             
            do_mysql
         | 
| 52 53 | 
             
            echoe (3.1.1, 3.0.2, 3)
         | 
| 54 | 
            +
            editalign
         | 
| 53 55 | 
             
            eventmachine
         | 
| 54 56 | 
             
            expectations (1.2.0)
         | 
| 55 57 | 
             
            extensions (0.6.0)
         | 
| @@ -142,6 +144,7 @@ money | |
| 142 144 | 
             
            mongrel
         | 
| 143 145 | 
             
            mosquito (0.1.4, 0.1.3)
         | 
| 144 146 | 
             
            mwmitchell-rsolr
         | 
| 147 | 
            +
            mwmitchell-material_girl
         | 
| 145 148 | 
             
            mysql (2.7)
         | 
| 146 149 | 
             
            nagoro
         | 
| 147 150 | 
             
            net-ssh (2.0.11, 2.0.4)
         | 
| @@ -161,6 +164,7 @@ plist | |
| 161 164 | 
             
            polyglot (0.2.6, 0.2.5, 0.2.3)
         | 
| 162 165 | 
             
            populator
         | 
| 163 166 | 
             
            prawn
         | 
| 167 | 
            +
            PriorityQueue
         | 
| 164 168 | 
             
            quietbacktrace
         | 
| 165 169 | 
             
            rack (1.0.0, 0.9.1, 0.4.0)
         | 
| 166 170 | 
             
            rack-test (0.2.0, 0.1.0)
         | 
| @@ -189,6 +193,7 @@ rest-client (0.9.2, 0.7) | |
| 189 193 | 
             
            right_aws (1.8.1)
         | 
| 190 194 | 
             
            rio
         | 
| 191 195 | 
             
            rmagick (2.10.0, 2.9.1, 2.6.0, 2.5.2)
         | 
| 196 | 
            +
            roo
         | 
| 192 197 | 
             
            roodi (1.4.0)
         | 
| 193 198 | 
             
            rr
         | 
| 194 199 | 
             
            rspec (1.2.7, 1.2.4, 1.1.8, 1.1.4, 0.5.0)
         | 
| @@ -207,6 +212,7 @@ rubygems-update (1.3.2, 1.3.1) | |
| 207 212 | 
             
            RubyInline (3.8.1, 3.7.0)
         | 
| 208 213 | 
             
            rubyzip
         | 
| 209 214 | 
             
            ruby_parser (2.0.3, 2.0.2)
         | 
| 215 | 
            +
            ruby-xslt
         | 
| 210 216 | 
             
            runcoderun-configatron
         | 
| 211 217 | 
             
            runcoderun-gem_sync
         | 
| 212 218 | 
             
            ruport (1.6.1)
         | 
    
        data/spec/gem_sync_spec.rb
    CHANGED
    
    | @@ -1,6 +1,9 @@ | |
| 1 | 
            -
            require ' | 
| 1 | 
            +
            require 'rubygems'
         | 
| 2 | 
            +
            gem 'spicycode-micronaut'
         | 
| 3 | 
            +
            require 'micronaut'
         | 
| 2 4 | 
             
            require 'mocha'
         | 
| 3 5 | 
             
            require File.join(File.dirname(__FILE__), *%w[.. lib rcr gem_sync])
         | 
| 6 | 
            +
            require File.join(File.dirname(__FILE__), *%w[example_helper])
         | 
| 4 7 |  | 
| 5 8 | 
             
            describe 'GemSync' do
         | 
| 6 9 |  | 
| @@ -133,4 +136,4 @@ ZenTest (3.10.0, 3.9.2, 3.9.1, 3.8.0, 3.6.0)] | |
| 133 136 | 
             
                end
         | 
| 134 137 | 
             
              end
         | 
| 135 138 |  | 
| 136 | 
            -
            end
         | 
| 139 | 
            +
            end
         |