ana 0.9.6 → 0.9.7

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: 00ec9d8017a4961c9799f139661abce44f6cc637
4
- data.tar.gz: 89350e89675d8f61a8d464acf9027679f0b8ea11
3
+ metadata.gz: dc3f1d0541c9c6f90e00660d150ffaca1526b8fa
4
+ data.tar.gz: 5dcd9aed25da621baa09b8dd942ed89214f711fc
5
5
  SHA512:
6
- metadata.gz: c4a9c9288f0fd8fc35471120d2a77959a82be2d11ea122d02b0512ef73aa2fb6a20490af76d7f03a6c7e068bbf97157965107b310be2afa7adfd68b25d44e030
7
- data.tar.gz: 7b51ba6344d592bc561844682d73e2993e36ca6a6ed02d90ad16f6a2e37bb033781b442af7b591d776ead322ba006e1bd23e7a3e6e72e8829ab6b79eafcc2268
6
+ metadata.gz: fcb228d7f16eebe6f0c231535b9edda69168b7a1c327007cd09b0f2a0de282ea938d02eb3fc38add86b7cf0f4d2324411087d1443706e29a2b5e09e0fbc0f261
7
+ data.tar.gz: c881a53f9bd6ae63cf2cb7a94991e37ed67c0b09aa8534f371f11973211cebc2c7a8387801aeafe67b24b7d1e86824c64739a5ba314f4d9e48bebc99d540ae50
data/README.md CHANGED
@@ -8,6 +8,38 @@ A command-line tool for [RubyGems.org][1].
8
8
 
9
9
  $ gem install ana
10
10
 
11
+ and `init` Ana:
12
+
13
+ $ ana init
14
+
15
+ It will create a folder under your `$HOME` directory.
16
+
17
+ This is for caching the json files that returned by RubyGems.org.
18
+
19
+ If unfortunately you want to uninstall Ana, please remove this directory:
20
+
21
+ $ rm -rf ~/.gemjsons
22
+
23
+ ## List of Command and its alias
24
+
25
+ ```bash
26
+ $ ana command args
27
+ ```
28
+
29
+ |Command|Alias|Purpose|
30
+ |----|----|----|
31
+ | `version` | `-v`| Returns the version of Ana. |
32
+ | `version` | `--version`| Returns the version of Ana. |
33
+ | `gem_infos` | `info` | Get information of a RubyGem. |
34
+ | `gem_dependencies` | `deps` | List Runtime/Development Dependencies of a RubyGem. |
35
+ | `latest_version` | `lv` | Return latest version of a RubyGem. |
36
+ | `versions` | `vs` | Return (default last 10) versions of a RubyGem. |
37
+ | `find_version` | `fv` | Find if a RubyGem has given version. |
38
+ | `search` | `s` | Exact Search a RubyGem with given name. |
39
+ | `fuzzy_search` | `fs` | Fuzzy search a gem via `gem search -r`. |
40
+ | `open` | `o` | Open a RubyGem's URI: homepage, doc, wiki...etc. |
41
+ | `download` | `dl` | Download a RubyGem in browser. |
42
+
11
43
  ## Usage
12
44
 
13
45
  Type `ana` to get some help:
data/ana.gemspec CHANGED
@@ -18,9 +18,11 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
22
+
21
23
  spec.required_ruby_version = '>= 2.0.0'
22
24
 
23
- spec.add_dependency 'thor', '~> 0.18.1'
25
+ spec.add_dependency 'thor', '~> 0.19.1'
24
26
  spec.add_dependency 'launchy', '~> 2.4.2'
25
27
  spec.add_dependency 'activesupport', '~> 4.0.1'
26
28
 
data/lib/ana/command.rb CHANGED
@@ -68,7 +68,7 @@ module Ana
68
68
  end
69
69
 
70
70
  # Return latest version of given gem.
71
- desc 'latest_version (v)', 'latest version of a gem.'
71
+ desc 'latest_version (lv)', 'latest version of a gem.'
72
72
  def latest_version(gem)
73
73
  return if gem_does_not_exist?(gem)
74
74
  gem_hash = get_gem_json!(gem, type: 'gems')
@@ -96,7 +96,7 @@ module Ana
96
96
 
97
97
  # FIXME should print info related to that version
98
98
  # Find if a given version of Gem exists.
99
- desc 'version exist?', 'Find if a given version exists.'
99
+ desc 'find_version (fv)', 'Find if a given version exists.'
100
100
  def find_version(gem, ver='no-input')
101
101
  return if gem_does_not_exist?(gem)
102
102
  if ver == 'no-input'
data/lib/ana/constants.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Ana
2
2
  module Scalars
3
- TTL = 900 # Every 900s updates the json.
3
+ TTL = 900 # ~/gemjsons/gemname/*.json expires time.
4
4
  GEM_NOT_FOUND = 'This rubygem could not be found.'
5
5
  GEM_DOES_NOT_EXIST = 'This gem does not exist.'
6
6
  GEM_VER_NOT_FOUND = 'This version could not be found.'
@@ -10,7 +10,7 @@ module Ana
10
10
  BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = [*30..37]
11
11
 
12
12
  # $ curl https://rubygems.org/api/v1/gems/rails.json
13
- # uris of above json
13
+ # URIs of above json
14
14
  URI_TYPE = {
15
15
  'proj' => 'project_uri',
16
16
  'lib' => 'gem_uri',
data/lib/ana/version.rb CHANGED
@@ -2,7 +2,7 @@ module Ana
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 6
5
+ TINY = 7
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanito Fatas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-01 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.1
19
+ version: 0.19.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.18.1
26
+ version: 0.19.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: launchy
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.4.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.4.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 4.0.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 4.0.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.4'
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
68
  version: '1.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 10.1.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 10.1.0
83
83
  description: A command-line tool for https://rubygems.org/
@@ -88,7 +88,7 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
91
+ - ".gitignore"
92
92
  - Gemfile
93
93
  - LICENSE
94
94
  - README.md
@@ -104,24 +104,25 @@ files:
104
104
  homepage: https://github.com/JuanitoFatas/Ana
105
105
  licenses:
106
106
  - MIT
107
- metadata: {}
107
+ metadata:
108
+ allowed_push_host: https://rubygems.org
108
109
  post_install_message:
109
110
  rdoc_options: []
110
111
  require_paths:
111
112
  - lib
112
113
  required_ruby_version: !ruby/object:Gem::Requirement
113
114
  requirements:
114
- - - '>='
115
+ - - ">="
115
116
  - !ruby/object:Gem::Version
116
117
  version: 2.0.0
117
118
  required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  requirements:
119
- - - '>='
120
+ - - ">="
120
121
  - !ruby/object:Gem::Version
121
122
  version: '0'
122
123
  requirements: []
123
124
  rubyforge_project:
124
- rubygems_version: 2.1.11
125
+ rubygems_version: 2.2.2
125
126
  signing_key:
126
127
  specification_version: 4
127
128
  summary: Ana knows a lot about RubyGems.