netprint 0.1.1 → 0.2.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: 06b46cbb5cd6cc685904e4143735254a770a3cf9
4
+ data.tar.gz: d3fefe74b8a66bde6c1f36e27ad6c38c8519bff8
5
+ SHA512:
6
+ metadata.gz: dc4fe154bd22e887571473f896ffe00fa10c66e09386575f7b666df0d87d7c1bf872039180788f985f6ff6af084cb5ff7b18ddc5cbf6f8e4573a50ccafef5fe6
7
+ data.tar.gz: a73f5cbacbf2e327d6cfdffaef028bd13dda7e754e7b3f808794ff85fc5c12ad9b3152c5e8f3deec5fe2e21732e2a9ae7ca7707d8276bb0545bd405f14825f5d
data/README.md CHANGED
@@ -47,6 +47,21 @@ n.upload('/path/to/file.pdf', {
47
47
  })
48
48
  ```
49
49
 
50
+ ### CLI
51
+
52
+ ```
53
+ $ netprint --help
54
+ Usage:
55
+ netprint [--user=<userid:password>] [--email=<email>] [--secret=<secret>] <filename>
56
+ netprint -h | --help
57
+
58
+ Options:
59
+ -h --help Show this screen.
60
+ -v --version Show version information.
61
+ -u --user=<userid:password> User account. If not specified, ENV['NETPRINT_(USERID|PASSWORD)'] is used.
62
+ -e --email=<email> Email address to notify. If not specified, ENV['NETPRINT_EMAIL'] is used.
63
+ -s --secret=<secret> Secret code.
64
+ ```
50
65
 
51
66
  ## Contributing
52
67
 
data/bin/netprint CHANGED
@@ -27,6 +27,7 @@ begin
27
27
  netprint.login
28
28
  code = netprint.upload(options['<filename>'],
29
29
  :email => options['--email'] || ENV['NETPRINT_EMAIL'],
30
+ :color => Netprint::COLOR::SELECT_WHEN_PRINT,
30
31
  :secret_code => options['--secret'])
31
32
 
32
33
  puts code
@@ -1,3 +1,3 @@
1
1
  module Netprint
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,84 +1,74 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - youpy
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2014-11-09 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.8.0
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: 2.8.0
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: '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: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: netprint
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
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
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: webmock
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
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
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: mechanize
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - '='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
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
@@ -94,33 +83,29 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: addressable
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
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
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: docopt
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  description: A library to upload file to netprint
@@ -131,8 +116,8 @@ executables:
131
116
  extensions: []
132
117
  extra_rdoc_files: []
133
118
  files:
134
- - .gitignore
135
- - .rspec
119
+ - ".gitignore"
120
+ - ".rspec"
136
121
  - Gemfile
137
122
  - LICENSE
138
123
  - README.md
@@ -157,33 +142,26 @@ files:
157
142
  - spec/あいうえお.pdf
158
143
  homepage: ''
159
144
  licenses: []
145
+ metadata: {}
160
146
  post_install_message:
161
147
  rdoc_options: []
162
148
  require_paths:
163
149
  - lib
164
150
  required_ruby_version: !ruby/object:Gem::Requirement
165
- none: false
166
151
  requirements:
167
- - - ! '>='
152
+ - - ">="
168
153
  - !ruby/object:Gem::Version
169
154
  version: '0'
170
- segments:
171
- - 0
172
- hash: -3601402640496916733
173
155
  required_rubygems_version: !ruby/object:Gem::Requirement
174
- none: false
175
156
  requirements:
176
- - - ! '>='
157
+ - - ">="
177
158
  - !ruby/object:Gem::Version
178
159
  version: '0'
179
- segments:
180
- - 0
181
- hash: -3601402640496916733
182
160
  requirements: []
183
161
  rubyforge_project:
184
- rubygems_version: 1.8.25
162
+ rubygems_version: 2.2.1
185
163
  signing_key:
186
- specification_version: 3
164
+ specification_version: 4
187
165
  summary: A library to upload file to netprint
188
166
  test_files:
189
167
  - spec/error.html