fucktherubyracer 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e16be8864e97564bfa5202f848cbb8e24c2566f
4
- data.tar.gz: bc5503b22a7a865a81118f87d3a6237e85b484e1
3
+ metadata.gz: 13fdd76a60753da27a38d05184b9a260313b926f
4
+ data.tar.gz: 1aeb48a79291db0c4257eeaf105784cf1459038f
5
5
  SHA512:
6
- metadata.gz: bd2d16508ca6a60f93e0c67908e7262fe749238a742a808c47908d9b2f56acfd52de060234e1e812c1a608a0405017f3eb6c45f307eeec02e3c6cd4de83d851a
7
- data.tar.gz: 8aed61ea68ea191abd154bef15b89dad6f076397914604fe7ff3a2473b3b6ff689e541de5a6b06792031d9e172a6900a150d76b57cd095f870075823ba9493b8
6
+ metadata.gz: e034e580e4faf280d82a52feccd78f1737c4be4279d3c8149395ab822fbe0d427fbe8bbc899ad5218957a84114e86105525af3d1f6b5a3760139859c063ca30e
7
+ data.tar.gz: d2db35fa0494edc24f2b0fadf87d35c6b688e2d38cef0198127d93318fdd16347e392e6bcbd2cee5783126bfa5baa2fd16fdeb0489b524d57e28fcb86e84ebe6
@@ -7,10 +7,12 @@ module Fucktherubyracer
7
7
  def initialize
8
8
  end
9
9
 
10
- def fuck(gem_name)
11
- spec = lockfile_parser.specs.find do |spec|
12
- spec.name == gem_name
13
- end
10
+ def fuck(gem_name, version = nil)
11
+ spec = if version
12
+ Gem::Specification.new(gem_name, version)
13
+ else
14
+ lockfile_parser.specs.find { |spec| spec.name == gem_name }
15
+ end
14
16
 
15
17
  generate(spec)
16
18
  end
@@ -3,10 +3,11 @@ require 'thor'
3
3
  module Fucktherubyracer
4
4
  class Runner < Thor
5
5
  desc 'fuck GEM_NAME', 'Reads dependency info from Gemfile.lock and installs fake gem'
6
+ method_option :version, desc: 'Version to fuck'
6
7
  def fuck(gem_name)
7
8
  require 'fucktherubyracer/fucker'
8
9
  fucker = Fucktherubyracer::Fucker.new
9
- fucker.fuck(gem_name)
10
+ fucker.fuck(gem_name, options[:version])
10
11
  end
11
12
  end
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module Fucktherubyracer
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fucktherubyracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Semyonov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-30 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -126,8 +126,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.4.7
129
+ rubygems_version: 2.5.1
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Fucks uninstallable TheRubyRacer gem.
133
133
  test_files: []
134
+ has_rdoc: