rixi 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/delete_kantan_photo.rb +16 -0
  3. data/lib/rixi.rb +1 -1
  4. data/rixi.gemspec +12 -11
  5. metadata +17 -16
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.8
1
+ 0.3.9
@@ -0,0 +1,16 @@
1
+ # -*- coding: utf-8 -*-
2
+ puts "かんたん公開アルバムの写真を全削除します"
3
+
4
+ M ||= nil
5
+ if M.nil?
6
+ puts "irb上でsample_safari.rbをloadしてからloadして利用して下さい。"
7
+ end
8
+
9
+ mixi = M
10
+ response = mixi.photos_in_album "@me", "@default"
11
+ response["entry"].each do |entry|
12
+ puts "delete #{entry['id']}"
13
+ mixi.delete_photo "@me", "@default", entry["id"]
14
+ end
15
+ puts "完了"
16
+
data/lib/rixi.rb CHANGED
@@ -66,7 +66,7 @@ class Rixi
66
66
  @token = OAuth2::AccessToken.new(@client,access_token,
67
67
  {:refresh_token => refresh_token,
68
68
  :expires_in => expires_in,
69
- :expires_at => 900,
69
+ :expires_at => Time.now.to_i+expires_in,
70
70
  :mode => :header,
71
71
  :header_format => "OAuth %s"})
72
72
  return self
data/rixi.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{rixi}
8
- s.version = "0.3.8"
7
+ s.name = "rixi"
8
+ s.version = "0.3.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{ainame }]
12
- s.date = %q{2011-10-01}
13
- s.description = %q{Rixi is a simply library for mixi graph api in Ruby.}
14
- s.email = %q{ainame954@facebook.com}
11
+ s.authors = ["ainame "]
12
+ s.date = "2011-11-06"
13
+ s.description = "Rixi is a simply library for mixi graph api in Ruby."
14
+ s.email = "ainame954@facebook.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
23
23
  "README.rdoc",
24
24
  "Rakefile",
25
25
  "VERSION",
26
+ "delete_kantan_photo.rb",
26
27
  "dummy.rb",
27
28
  "lib/rixi.rb",
28
29
  "rixi.gemspec",
@@ -31,11 +32,11 @@ Gem::Specification.new do |s|
31
32
  "spec/rixi_spec.rb",
32
33
  "spec/spec_helper.rb"
33
34
  ]
34
- s.homepage = %q{http://github.com/ainame/rixi}
35
- s.licenses = [%q{MIT}]
36
- s.require_paths = [%q{lib}]
37
- s.rubygems_version = %q{1.8.8}
38
- s.summary = %q{Rixi is a simply library for mixi graph api in Ruby.}
35
+ s.homepage = "http://github.com/ainame/rixi"
36
+ s.licenses = ["MIT"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = "1.8.10"
39
+ s.summary = "Rixi is a simply library for mixi graph api in Ruby."
39
40
 
40
41
  if s.respond_to? :specification_version then
41
42
  s.specification_version = 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rixi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
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: 2011-10-01 00:00:00.000000000Z
12
+ date: 2011-11-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
16
- requirement: &70365960681220 !ruby/object:Gem::Requirement
16
+ requirement: &70246154184600 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.5.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70365960681220
24
+ version_requirements: *70246154184600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70365960661960 !ruby/object:Gem::Requirement
27
+ requirement: &70246154183920 !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: *70365960661960
35
+ version_requirements: *70246154183920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70365960661180 !ruby/object:Gem::Requirement
38
+ requirement: &70246154183280 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.3.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70365960661180
46
+ version_requirements: *70246154183280
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70365960660360 !ruby/object:Gem::Requirement
49
+ requirement: &70246154182780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70365960660360
57
+ version_requirements: *70246154182780
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &70365960659480 !ruby/object:Gem::Requirement
60
+ requirement: &70246154182260 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.6.4
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70365960659480
68
+ version_requirements: *70246154182260
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rcov
71
- requirement: &70365960658260 !ruby/object:Gem::Requirement
71
+ requirement: &70246154181400 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70365960658260
79
+ version_requirements: *70246154181400
80
80
  description: Rixi is a simply library for mixi graph api in Ruby.
81
81
  email: ainame954@facebook.com
82
82
  executables: []
@@ -91,6 +91,7 @@ files:
91
91
  - README.rdoc
92
92
  - Rakefile
93
93
  - VERSION
94
+ - delete_kantan_photo.rb
94
95
  - dummy.rb
95
96
  - lib/rixi.rb
96
97
  - rixi.gemspec
@@ -113,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
114
  version: '0'
114
115
  segments:
115
116
  - 0
116
- hash: 228808117772205465
117
+ hash: 3381446803524830659
117
118
  required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  none: false
119
120
  requirements:
@@ -122,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  requirements: []
124
125
  rubyforge_project:
125
- rubygems_version: 1.8.8
126
+ rubygems_version: 1.8.10
126
127
  signing_key:
127
128
  specification_version: 3
128
129
  summary: Rixi is a simply library for mixi graph api in Ruby.