irosi 0.0.2 → 0.0.3

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: 953cca899cc4a2795b5ad25628ff505875e90920
4
- data.tar.gz: 9efe6aaba4c9680af5b71ee6041ff7b7f7b293de
3
+ metadata.gz: 7010e41c8d1703fcbce03bc78d474fb3536491c7
4
+ data.tar.gz: dbce828c954677025ad2aabda57ec8e90e93277b
5
5
  SHA512:
6
- metadata.gz: 0be995b7e8a756bc8b829b4a293a363f9d1f8b3ecc0e8f58a6b5a24f2e6e7b4214e546df36f5a30ec1540d970198bff3c384e7ee8c23245f762c11db17880071
7
- data.tar.gz: b30f5e15110f01a623ea9947bbaeafdf907e8dfefa30aeeebe3f7ae4364cd3795378003666752913dcd6fe398aee1d26159b7432b4fc163f4675d974a02071c8
6
+ metadata.gz: de03a13ea90949b9d482061863b28e318057a9692d29e4089381795fa95095707c5815463ddf53f9bd458824f0b7d18aba0c4f14df193f0ee362673f0f61e8e4
7
+ data.tar.gz: 9ae4c7024b04dda4b4342825a7bb5e08f0654641d47ed39bf555c83f1f561968b931e991b0aadbd9707b75025df6b79d395cbcf7c828b5a8663a16ace426968c
data/Gemfile CHANGED
@@ -3,17 +3,6 @@ source 'https://ruby.taobao.org'
3
3
  # Specify your gem's dependencies in irosi.gemspec
4
4
  gemspec
5
5
 
6
- # gem 'thin'
7
-
8
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
9
- gem 'rails', '4.0.2'
10
-
11
- # Use sqlite3 as the database for Active Record
12
- gem 'sqlite3'
13
-
14
-
15
- gem 'logger'
16
-
17
6
 
18
7
  gem 'curb'
19
8
  gem 'nokogiri'
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Irosi
1
+ # about iRosi gem
2
2
 
3
- TODO: Write a gem description
3
+ r o s i 大家懂的,这是一个简单的下载图片的gem而已
4
4
 
5
5
  ## Installation
6
6
 
@@ -16,14 +16,64 @@ Or install it yourself as:
16
16
 
17
17
  $ gem install irosi
18
18
 
19
- ## Usage
19
+ ```
20
+ ➜ test gem install irosi
21
+ Fetching: irosi-0.0.1.gem (100%)
22
+ Successfully installed irosi-0.0.1
23
+ Parsing documentation for irosi-0.0.1
24
+ Installing ri documentation for irosi-0.0.1
25
+ Done installing documentation for irosi after 0 seconds
26
+ 1 gem installed
27
+ ```
28
+
29
+ this gem depend on 2 gems
30
+
31
+ ```
32
+ gem install 'curb'
33
+ gem install 'nokogiri'
34
+ ```
35
+
36
+ ## 功能
37
+
38
+ - 根据指定的专辑编号下载
39
+ - 下载区间编号之内的所有专辑
40
+
41
+
42
+ ## 查看帮助文档
43
+
44
+ ```
45
+ ➜ irosi git:(master) ✗ irosi --help
46
+ here is help messages of rosi command line tool.
47
+ -n, --alburmnum Name download one alburnm with num
48
+ -b, --begin begin the first alburnm num for download
49
+ -e, --end end the last alburnm num for download
50
+ -f, --file file download one alburnm with num
51
+
52
+ ```
53
+
54
+ ## 使用方法
55
+
56
+ ```
57
+ ➜ test irosi -n 100
58
+
59
+ {:file=>"/home/i5ting/rosi/test", :num=>"100"}
60
+ exist path
61
+ download alburm number = 100
62
+ download_all starting...
63
+
64
+ Downloading
65
+ .........
66
+
67
+ ```
68
+
69
+ ## Api说明
20
70
 
21
71
 
22
72
  ```
23
73
  Rosi.download do
24
- for num in 1..8
25
- item(num)
26
- end
74
+ for num in 1..8
75
+ tem(num)
76
+ end
27
77
  end
28
78
  ```
29
79
 
@@ -35,8 +85,21 @@ Rosi.download do
35
85
  item(2)
36
86
  item(4)
37
87
  end
88
+
38
89
  ```
39
90
 
91
+ 目前还比较简陋,欢迎反馈
92
+
93
+ ## history
94
+
95
+
96
+ - v0.0.3
97
+ - 增加runtime dependency
98
+ - v0.0.2
99
+ - optparse doc
100
+ - v0.0.1
101
+ - init
102
+
40
103
  ## Contributing
41
104
 
42
105
  1. Fork it ( http://github.com/<my-github-username>/irosi/fork )
@@ -44,3 +107,4 @@ end
44
107
  3. Commit your changes (`git commit -am 'Add some feature'`)
45
108
  4. Push to the branch (`git push origin my-new-feature`)
46
109
  5. Create new Pull Request
110
+
data/irosi.gemspec CHANGED
@@ -20,4 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
22
  spec.add_development_dependency "rake"
23
+
24
+ spec.add_runtime_dependency 'curb'
25
+ spec.add_runtime_dependency 'nokogiri'
23
26
  end
data/lib/irosi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Irosi
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,57 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irosi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - shiren1118
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-14 00:00:00.000000000 Z
11
+ date: 2014-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: curb
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: nokogiri
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
39
67
  - !ruby/object:Gem::Version
40
68
  version: '0'
41
69
  description: rosi image downloader
42
70
  email:
43
71
  - shiren1118@126.com
44
72
  executables:
45
- - "._irosi"
73
+ - ._irosi
46
74
  - irosi
47
75
  extensions: []
48
76
  extra_rdoc_files: []
49
77
  files:
50
- - "._Gemfile"
51
- - "._README.md"
52
- - "._Rakefile"
53
- - "._irosi.gemspec"
54
- - ".gitignore"
78
+ - .gitignore
55
79
  - Gemfile
56
80
  - LICENSE.txt
57
81
  - README.md
@@ -61,7 +85,6 @@ files:
61
85
  - irosi.gemspec
62
86
  - lib/._irosi.rb
63
87
  - lib/irosi.rb
64
- - lib/irosi/._download.rb
65
88
  - lib/irosi/download.rb
66
89
  - lib/irosi/version.rb
67
90
  homepage: ''
@@ -74,17 +97,17 @@ require_paths:
74
97
  - lib
75
98
  required_ruby_version: !ruby/object:Gem::Requirement
76
99
  requirements:
77
- - - ">="
100
+ - - '>='
78
101
  - !ruby/object:Gem::Version
79
102
  version: '0'
80
103
  required_rubygems_version: !ruby/object:Gem::Requirement
81
104
  requirements:
82
- - - ">="
105
+ - - '>='
83
106
  - !ruby/object:Gem::Version
84
107
  version: '0'
85
108
  requirements: []
86
109
  rubyforge_project:
87
- rubygems_version: 2.2.0
110
+ rubygems_version: 2.2.2
88
111
  signing_key:
89
112
  specification_version: 4
90
113
  summary: rosi image
data/._Gemfile DELETED
Binary file
data/._README.md DELETED
Binary file
data/._Rakefile DELETED
Binary file
data/._irosi.gemspec DELETED
Binary file
Binary file