japonica 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: 4bf2590f2d9732fd832f8cc53571ea2a9bc04294
4
- data.tar.gz: 6d1bac5d8aac3086b4a0502e8be3169a2e0f747f
3
+ metadata.gz: 300be3fa5b0b2845de3e20443d2a1154957bc4ff
4
+ data.tar.gz: 54fbae70fbe9091de9c0d218f6e2118e57228942
5
5
  SHA512:
6
- metadata.gz: 974760745c2775065fd4cae0add8df02cc9bfe6c6b6683242144db125992cf7516339262936cb700324e09ec66edb34bcecf83ddbb7e5f2513c427bcda32c417
7
- data.tar.gz: b4ca13593240fb0bd17416040e3c7b406b2de8928ad793de6f5dd06e401c73fcdb0c9502cfaf14a4d9260558e2067d39707606ecf8a3bd6388084d5b7b66d09f
6
+ metadata.gz: cce58aa2e72b0c0ea87a6790aff93fd9b6290d027eded8b548670870b75926f19cf5312ccd87ff6df3a9e51848d075eef499513e767dff0f0249ea37a7758b9a
7
+ data.tar.gz: af8955e010aa2b1c5359b44f4358f49e90b021d74b4bb972394a52aee26707426ae6158685240a6bf340726e4cb832fcf3c4de21f489261e3b1120201010e090
data/README.md CHANGED
@@ -8,6 +8,10 @@ content of the provided url.
8
8
 
9
9
  ## Installation
10
10
 
11
+ $ gem install japonica
12
+
13
+ Or, from source:
14
+
11
15
  $ git clone git://github.com/ryands/japonica.git japonica
12
16
  $ cd japonica/
13
17
  $ bundle install
@@ -19,3 +23,8 @@ content of the provided url.
19
23
 
20
24
  The [bid type] can be one of: `bid`, `snipe`, or `bin` (buy-it-now).
21
25
 
26
+ ## Links
27
+
28
+ * [Japonica](http://www.japonicamarket.com/)
29
+ * [RubyGems](https://rubygems.org/gems/japonica)
30
+
@@ -17,6 +17,14 @@ module Japonica
17
17
  puts ERB.new(File.read(File.join(template_path, 'orderform.tt'))).result(binding)
18
18
  end
19
19
 
20
+ desc "batch FILE", "Batch generate from a file"
21
+ def batch(file)
22
+ File.readlines(file).each do |l|
23
+ url, max, type = l.split(' ')
24
+ order(url, max, type)
25
+ end
26
+ end
27
+
20
28
  private
21
29
 
22
30
  def template_path
@@ -1,3 +1,3 @@
1
1
  module Japonica
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: japonica
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
  - ryands
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-22 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor