0xffffff 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,14 @@
1
1
  = 0xffffff
2
2
 
3
- Description goes here.
3
+ A Tool to Upload 0xffffff Images to Flickr
4
+
5
+ == Installation
6
+
7
+ gem install 0xffffff
8
+
9
+ == Usage
10
+
11
+ $ 0xffffff
4
12
 
5
13
  == Contributing to 0xffffff
6
14
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -20,10 +20,10 @@ module FFFFFF
20
20
 
21
21
  def count_up
22
22
  count = read
23
- count += 1
24
23
 
25
24
  yield count
26
25
 
26
+ count += 1
27
27
  write(count)
28
28
  end
29
29
 
@@ -18,18 +18,15 @@ describe Counter do
18
18
  x = 0;
19
19
 
20
20
  counter = Counter.new(@path.to_s)
21
-
22
21
  counter.count_up do |count|
23
22
  x = count
24
23
  end
25
24
 
26
- x.should eql(124)
25
+ x.should eql(123)
27
26
 
28
- counter.count_up do |count|
29
- x = count
27
+ open(@path) do |f|
28
+ f.read.chomp.to_i.should eql(124)
30
29
  end
31
-
32
- x.should eql(125)
33
30
  end
34
31
 
35
32
  it 'should count up even if file does not exist' do
@@ -40,7 +37,11 @@ describe Counter do
40
37
  x = count
41
38
  end
42
39
 
43
- x.should eql(1)
40
+ x.should eql(0)
41
+
42
+ open(@path) do |f|
43
+ f.read.chomp.to_i.should eql(1)
44
+ end
44
45
  end
45
46
  end
46
47
  end
@@ -31,7 +31,7 @@ describe Runner do
31
31
 
32
32
  it 'should raise if count exceeds the max colors' do
33
33
  open(@path, 'w') do |f|
34
- f.write(0xffffff)
34
+ f.write(0x1000000)
35
35
  end
36
36
 
37
37
  Uploader.should_receive(:new).and_return(uploader = mock)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: '0xffffff'
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000 Z
12
+ date: 2012-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chunky_png
16
- requirement: &70191937603200 !ruby/object:Gem::Requirement
16
+ requirement: &70258312464000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70191937603200
24
+ version_requirements: *70258312464000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: flickraw-cached
27
- requirement: &70191937618460 !ruby/object:Gem::Requirement
27
+ requirement: &70258312479300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70191937618460
35
+ version_requirements: *70258312479300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70191937616300 !ruby/object:Gem::Requirement
38
+ requirement: &70258312477280 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.8.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70191937616300
46
+ version_requirements: *70258312477280
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70191937614760 !ruby/object:Gem::Requirement
49
+ requirement: &70258312475580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.8.3
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70191937614760
57
+ version_requirements: *70258312475580
58
58
  description: A Tool to Upload 0xffffff Images to Flickr
59
59
  email: youpy@buycheapviagraonlinenow.com
60
60
  executables:
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  segments:
96
96
  - 0
97
- hash: -4373781767294178785
97
+ hash: 4003751617940492351
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements: