gem-search 0.0.9 → 0.1.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: a808ed1d9a953aeb810b77ce422aa6540ae111dd
4
- data.tar.gz: f3eaa15d3276792420103a670b318dc3ef90cc1d
3
+ metadata.gz: fa5d29683d40347c2e64155c2eaec2d83a339595
4
+ data.tar.gz: ddabcfcf4e8f76e4678435f790c2ba4c329d0f67
5
5
  SHA512:
6
- metadata.gz: 4cae323278b375959825d1dcb76af2714327e8872e8ae50b03520ad0ad98e372fa18b68693dbf37b2e141547be8d873b191b767282fdc84feed2bc8055bb174f
7
- data.tar.gz: 29c0b9ab724445931b78dee6753709294555ebfc91bea9ada7a822248f4977b804005f6779173c38864f5ccd2ec41f32bfc27d42d46724585ed27488f87c5a24
6
+ metadata.gz: 87f4cb2856f3830c13c762a777000a71a5453d0c73aa01e4c39c41a8f09c1f84136818cb51525ae6dd71542b8a9e5a2b7e32e894a986d5b88c01f3ef2f66c188
7
+ data.tar.gz: 2a4e03660736f1a56e27c4676ff808ef4139d47b7171dfda94cf3cdddf92624f90f3ea28e4591ce32b64e87a0d7c5229fc17e4a5a2d5c4f5699a8b6507814546
@@ -1,5 +1,19 @@
1
1
  require File.expand_path('../lib/gem-search/version', __FILE__)
2
2
 
3
+ def install_message
4
+ s = ''
5
+ s << "\xf0\x9f\x8d\xba " if or_over_mac_os_lion?
6
+ s << "Thanks for installing!"
7
+ end
8
+
9
+ def or_over_mac_os_lion?
10
+ return false unless RUBY_PLATFORM =~ /darwin/
11
+
12
+ macos_full_version = `/usr/bin/sw_vers -productVersion`.chomp
13
+ macos_version = macos_full_version[/10\.\d+/]
14
+ return macos_version >= '10.7' # 10.7 is lion
15
+ end
16
+
3
17
  Gem::Specification.new do |gem|
4
18
  gem.authors = ["rochefort"]
5
19
  gem.email = ["terasawan@gmail.com"]
@@ -14,11 +28,13 @@ Gem::Specification.new do |gem|
14
28
  gem.require_paths = ["lib"]
15
29
  gem.version = Gem::Search::VERSION
16
30
 
31
+ gem.post_install_message = install_message
32
+
17
33
  gem.add_dependency 'slop', '~>3.5.0'
18
34
  gem.add_dependency 'json', '~>1.8.1'
19
35
 
20
36
  gem.add_development_dependency 'webmock', '~>1.17.4'
21
- gem.add_development_dependency 'rake', '~> 0.9.2.2'
37
+ gem.add_development_dependency 'rake', '~>10.3.1'
22
38
 
23
39
  gem.add_development_dependency 'rspec', '~> 2.14.1'
24
40
  gem.add_development_dependency 'simplecov', '~> 0.8.2'
@@ -1,3 +1,3 @@
1
1
  module Gem::Search
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -31,7 +31,7 @@ describe Executor do
31
31
  let(:query) {'factory_girl'}
32
32
 
33
33
  context 'with no sort option' do
34
- it 'should display rubygems ordering by name' do
34
+ it 'display rubygems ordering by name' do
35
35
  capture(:stdout) { @executor.search(query) }.should == <<-'EOS'.unindent
36
36
  |Searching ..
37
37
  |NAME DL(ver) DL(all)
@@ -44,7 +44,7 @@ describe Executor do
44
44
  end
45
45
 
46
46
  context 'with sort option: [v]version_downloads' do
47
- it "should display rubygems ordering by name" do
47
+ it 'display rubygems ordering by name' do
48
48
  capture(:stdout) { @executor.search(query, 'version_downloads') }.should == <<-'EOS'.unindent
49
49
  |Searching ..
50
50
  |NAME DL(ver) DL(all)
@@ -57,7 +57,7 @@ describe Executor do
57
57
  end
58
58
 
59
59
  context 'with sort option: [a]download' do
60
- it "should display rubygems ordering by name" do
60
+ it 'display rubygems ordering by name' do
61
61
  capture(:stdout) { @executor.search(query, 'download') }.should == <<-'EOS'.unindent
62
62
  |Searching ..
63
63
  |NAME DL(ver) DL(all)
@@ -78,7 +78,7 @@ describe Executor do
78
78
  stub_request_no_result_with_page(4)
79
79
  end
80
80
  let(:query) { 'cucumber-' }
81
- it 'should display rubygems ordering by name' do
81
+ it 'display rubygems ordering by name' do
82
82
  capture(:stdout) { @executor.search(query) }.should == <<-'EOS'.unindent
83
83
  |Searching ....
84
84
  |NAME DL(ver) DL(all)
@@ -157,7 +157,7 @@ describe Executor do
157
157
  stub_request_no_result_with_page(2)
158
158
  end
159
159
  let(:query) {'size_is_42_2345678901234567890123456789012'}
160
- it "should be 50 characters" do
160
+ it 'is 50 characters' do
161
161
  capture(:stdout) { @executor.search(query) }.should == <<-'EOS'.unindent
162
162
  |Searching ..
163
163
  |NAME DL(ver) DL(all)
@@ -173,7 +173,7 @@ describe Executor do
173
173
  stub_request_no_result_with_page(2)
174
174
  end
175
175
  let(:query) {'size_is_43_23456789012345678901234567890123'}
176
- it "should be 51 characters" do
176
+ it 'is 51 characters' do
177
177
  capture(:stdout) { @executor.search(query) }.should == <<-'EOS'.unindent
178
178
  |Searching ..
179
179
  |NAME DL(ver) DL(all)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rochefort
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-11 00:00:00.000000000 Z
11
+ date: 2014-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.9.2.2
61
+ version: 10.3.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.9.2.2
68
+ version: 10.3.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +124,7 @@ files:
124
124
  homepage: https://github.com/rochefort/gem-search
125
125
  licenses: []
126
126
  metadata: {}
127
- post_install_message:
127
+ post_install_message: "\U0001F37A Thanks for installing!"
128
128
  rdoc_options: []
129
129
  require_paths:
130
130
  - lib