richard-cli 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fd606f3e8f8198b6117440cd9e06221ee9ba04f5
4
+ data.tar.gz: d12933b3185f431cd2a4eb88df11940c235f35d0
5
+ SHA512:
6
+ metadata.gz: 5517a05b23b414a512dbb10e96c5d207f32fbd987c7119f2986979f7f3a9098a40bdca0ddb6e6ac7c32b7f3af1c2508522e5fce2273db492ee55efc90c918514
7
+ data.tar.gz: c0f915d87f3482585d1d5066c38dec2badfb69918a14deb1dc34abbc8e63a159ec993c8761b7ae2d72cdefa004fcd53ff4feea524b95dbb1bb90dfac5be558f5
data/README.md CHANGED
@@ -15,10 +15,8 @@ Install it yourself as:
15
15
 
16
16
  Commands:
17
17
  list - List current queue
18
- enqueue - Add yourself to the queue
19
- cancel - Cancel yourself from the queue if you are in nit
20
- run - Signal to the queue if you are running (only works if you are at the head of the queue)
21
- finish - Signal to the queue if you are finished (only works if you are at the head of the queue)
18
+ grab - Add yourself to the queue
19
+ release - Removes you from the queue
22
20
  force_release - Force releases another user. The user_id must be provided.
23
21
 
24
22
  ## Contributing
data/bin/richard CHANGED
@@ -10,16 +10,13 @@ Usage:
10
10
 
11
11
  Commands:
12
12
  list - List current queue
13
- enqueue - Add yourself to the queue
14
- cancel - Cancel yourself from the queue if you are in nit
15
- run - Signal to the queue if you are running (only works if you are at the head of the queue)
16
- finish - Signal to the queue if you are finished (only works if you are at the head of the queue)
13
+ grab - Add yourself to the queue
14
+ release - Removes you from the queue
17
15
  force_release - Force releases another user. The user_id must be provided.
18
16
  EOS
19
17
  end
20
18
 
21
19
 
22
-
23
20
  config = Richard::ConfigRepository.find_or_create
24
21
  server = Richard::Server.new(config.url, config.api_key)
25
22
 
@@ -27,17 +24,11 @@ case ARGV[0]
27
24
  when 'list'
28
25
  server.list
29
26
 
30
- when 'enqueue'
31
- server.enqueue
32
-
33
- when 'cancel'
34
- server.cancel
35
-
36
- when 'run'
37
- server.run
27
+ when 'grab'
28
+ server.grab
38
29
 
39
- when 'finish'
40
- server.finish
30
+ when 'release'
31
+ server.release
41
32
 
42
33
  when 'force_release'
43
34
  user_id = ARGV[1].to_i
data/lib/richard.rb CHANGED
@@ -13,23 +13,13 @@ module Richard
13
13
  @api_key = api_key
14
14
  end
15
15
 
16
- def enqueue
17
- response = send_command("/queue/enqueue.json")
16
+ def grab
17
+ response = send_command("/queue/grab.json")
18
18
  print_result(response)
19
19
  end
20
20
 
21
- def cancel
22
- response = send_command("/queue/cancel.json")
23
- print_result(response)
24
- end
25
-
26
- def run
27
- response = send_command("/queue/run.json")
28
- print_result(response)
29
- end
30
-
31
- def finish
32
- response = send_command("/queue/finish.json")
21
+ def release
22
+ response = send_command("/queue/release.json")
33
23
  print_result(response)
34
24
  end
35
25
 
@@ -1,3 +1,3 @@
1
1
  module Richard
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
data/richard-cli.gemspec CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
23
 
24
- spec.add_dependency "json"
25
- spec.add_dependency "rest-client"
26
- spec.add_dependency "highline"
27
- spec.add_dependency "terminal-table"
24
+ spec.add_dependency "json", "~>1.8"
25
+ spec.add_dependency "rest-client", "~>1.7"
26
+ spec.add_dependency "highline", "~>1.6"
27
+ spec.add_dependency "terminal-table", "~>1.4"
28
28
  end
metadata CHANGED
@@ -1,112 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: richard-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Kerr
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-01-19 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.6'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.6'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '10.0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '10.0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: json
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: '1.8'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
54
+ version: '1.8'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rest-client
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: '0'
61
+ version: '1.7'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: '0'
68
+ version: '1.7'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: highline
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
- version: '0'
75
+ version: '1.6'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
- version: '0'
82
+ version: '1.6'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: terminal-table
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
- version: '0'
89
+ version: '1.4'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
- version: '0'
96
+ version: '1.4'
110
97
  description: ''
111
98
  email:
112
99
  - adamk@nulogy.com
@@ -115,14 +102,13 @@ executables:
115
102
  extensions: []
116
103
  extra_rdoc_files: []
117
104
  files:
118
- - .gitignore
105
+ - ".gitignore"
119
106
  - Gemfile
120
107
  - LICENSE.txt
121
108
  - README.md
122
109
  - Rakefile
123
110
  - bin/richard
124
111
  - lib/richard.rb
125
- - lib/richard/cli.rb
126
112
  - lib/richard/config.rb
127
113
  - lib/richard/config_repository.rb
128
114
  - lib/richard/queued_user.rb
@@ -132,32 +118,25 @@ files:
132
118
  homepage: http://github.com/nulogy/richard-cli
133
119
  licenses:
134
120
  - MIT
121
+ metadata: {}
135
122
  post_install_message:
136
123
  rdoc_options: []
137
124
  require_paths:
138
125
  - lib
139
126
  required_ruby_version: !ruby/object:Gem::Requirement
140
- none: false
141
127
  requirements:
142
- - - ! '>='
128
+ - - ">="
143
129
  - !ruby/object:Gem::Version
144
130
  version: '0'
145
- segments:
146
- - 0
147
- hash: -1249351282469868080
148
131
  required_rubygems_version: !ruby/object:Gem::Requirement
149
- none: false
150
132
  requirements:
151
- - - ! '>='
133
+ - - ">="
152
134
  - !ruby/object:Gem::Version
153
135
  version: '0'
154
- segments:
155
- - 0
156
- hash: -1249351282469868080
157
136
  requirements: []
158
137
  rubyforge_project:
159
- rubygems_version: 1.8.23.2
138
+ rubygems_version: 2.4.3
160
139
  signing_key:
161
- specification_version: 3
140
+ specification_version: 4
162
141
  summary: A command line interface for richard
163
142
  test_files: []
data/lib/richard/cli.rb DELETED
@@ -1,9 +0,0 @@
1
- require "richard/cli/version"
2
-
3
- module Richard
4
- module Cli
5
- def self.hello_world
6
- puts "Hello"
7
- end
8
- end
9
- end