clicoder 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab43482f8623533ebf4522b2ba10a442943e36f4
4
- data.tar.gz: fd96596c5157e9322f157c7295c3141fee35e901
3
+ metadata.gz: 0567b3191e30e1d1ce45f90871ca66e14d156ade
4
+ data.tar.gz: 09cc27e6694023218291aff531bb7c923bfae22b
5
5
  SHA512:
6
- metadata.gz: 06a0796538db286cfd1675fd83163ab968d846610fc5a6b12c672163f133a149853c3cb299a35287efb3be33b26b584b0c22fb7a226e71408ed40a6ddb72b603
7
- data.tar.gz: b89241d61f27cc6eb051a3d8d8995a7b9f91f7b015708aa2671a8d0fac2e0f0fe28cffd3bf4c89f0b159153703dabce467851c44d1af68100a2c43a28b345357
6
+ metadata.gz: b33ad4fad9623d20e60768a124052548f3668ad48316d7308faaa5323d5ffc93b707dcf2768fca3155f7a84a120c71593a0b107a9e54c347f0554eed1b6e9b24
7
+ data.tar.gz: 7a06d50192cf0d090a7344aa42a20cd860249a4a85971d24a25272b3636e4a0190f900de1fa73d391c357d2f63ada67fe260e1fd83e41c2806350eb0a9f0a8c7
data/README.md CHANGED
@@ -103,8 +103,8 @@ Commands:
103
103
  * [AtCoder](http://atcoder.jp/)
104
104
 
105
105
  ```sh
106
- clicoder new aoj PROBLEM_NUMBER # Prepare directory to deal with new problem from AOJ
107
- clicoder new atcoder CONTEST_ID PROBLEM_NUMBER # Prepare directory to deal with new problem from AtCoder
106
+ clicoder new aoj PROBLEM_NUMBER # Prepare directory to deal with new problem from AOJ
107
+ clicoder new atcoder TASK_URL # Prepare directory to deal with new problem from AtCoder
108
108
  ```
109
109
 
110
110
  ### AOJ
@@ -115,13 +115,9 @@ PROBLEM_NUMBER is shown in problem URL like this:
115
115
 
116
116
  ### AtCoder
117
117
 
118
- CONTEST_ID is shown in contest URL like this:
118
+ TASK_URL is a URL which looks like this:
119
119
 
120
- <pre>http://<strong>arc001</strong>.contest.atcoder.jp/</pre>
121
-
122
- PROBLEM_NUMBER is a number starting from 1, or it can be found in problem URL like this:
123
-
124
- <pre>http://arc001.contest.atcoder.jp/tasks/arc001_<strong>1</strong></pre>
120
+ <pre>http://arc001.contest.atcoder.jp/tasks/arc001_1</pre>
125
121
 
126
122
  # Tips
127
123
 
@@ -29,7 +29,9 @@ module Clicoder
29
29
 
30
30
  def login
31
31
  # no need to login for now
32
- yield
32
+ Mechanize.start do |m|
33
+ yield m
34
+ end
33
35
  end
34
36
 
35
37
  def site_name
@@ -1,3 +1,3 @@
1
1
  module Clicoder
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clicoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-06 00:00:00.000000000 Z
11
+ date: 2014-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri