fluxapi 0.5.1 → 0.5.2

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.
data/Manifest CHANGED
@@ -1,4 +1,3 @@
1
- fluxapi.gemspec
2
1
  History.txt
3
2
  lib/fluxapi/account.rb
4
3
  lib/fluxapi/asset.rb
@@ -9,6 +8,7 @@ lib/fluxapi/tags.rb
9
8
  lib/fluxapi/user.rb
10
9
  lib/fluxapi/users.rb
11
10
  lib/fluxapi.rb
11
+ Manifest
12
12
  Rakefile
13
13
  README.txt
14
14
  test/fixtures/account.xml
@@ -19,4 +19,3 @@ test/fluxapi/account_test.rb
19
19
  test/fluxapi/assets_test.rb
20
20
  test/fluxapi_test.rb
21
21
  test/test_helper.rb
22
- Manifest
data/README.txt CHANGED
@@ -25,13 +25,9 @@ require 'fluxapi'
25
25
 
26
26
  == INSTALL:
27
27
 
28
- Run the following if you haven't already:
28
+ Install the gem:
29
29
 
30
- $ gem sources -a http://gems.github.com
31
-
32
- Install the gem(s):
33
-
34
- $ sudo gem install bastilian-fluxapi
30
+ $ sudo gem install fluxapi
35
31
 
36
32
 
37
33
 
data/Rakefile CHANGED
@@ -1,20 +1,13 @@
1
1
  require 'rubygems'
2
- require 'echoe'
3
2
  require 'rake'
4
3
  require 'rake/testtask'
4
+ require 'echoe'
5
5
 
6
- Rake::TestTask.new(:test) do |test|
7
- test.libs << 'lib' << 'test'
8
- test.pattern = 'test/**/*_test.rb'
9
- test.verbose = false
10
- end
11
-
12
- Echoe.new('fluxapi', '0.5.1') do |p|
6
+ Echoe.new('fluxapi', '0.5.2') do |p|
13
7
  p.description = "A fluxiom api wrapper for ruby"
14
8
  p.url = "http://fluxapi.rubyforge.org"
15
9
  p.author = "Sebastian Gräßl"
16
10
  p.email = "sebastian.graessl@gmail.com"
17
- p.project = "fluxapi"
11
+ p.project = "fluxapi"
12
+ p.runtime_dependencies = ["httparty >= 0.4.3"]
18
13
  end
19
-
20
- Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fluxapi}
5
- s.version = "0.5.1"
5
+ s.version = "0.5.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sebastian Gr\303\244\303\237l"]
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.description = %q{A fluxiom api wrapper for ruby}
11
11
  s.email = %q{sebastian.graessl@gmail.com}
12
12
  s.extra_rdoc_files = ["lib/fluxapi/account.rb", "lib/fluxapi/asset.rb", "lib/fluxapi/assets.rb", "lib/fluxapi/base.rb", "lib/fluxapi/tag.rb", "lib/fluxapi/tags.rb", "lib/fluxapi/user.rb", "lib/fluxapi/users.rb", "lib/fluxapi.rb", "README.txt"]
13
- s.files = ["fluxapi.gemspec", "History.txt", "lib/fluxapi/account.rb", "lib/fluxapi/asset.rb", "lib/fluxapi/assets.rb", "lib/fluxapi/base.rb", "lib/fluxapi/tag.rb", "lib/fluxapi/tags.rb", "lib/fluxapi/user.rb", "lib/fluxapi/users.rb", "lib/fluxapi.rb", "Rakefile", "README.txt", "test/fixtures/account.xml", "test/fixtures/assets.xml", "test/fixtures/tags.xml", "test/fixtures/users.xml", "test/fluxapi/account_test.rb", "test/fluxapi/assets_test.rb", "test/fluxapi_test.rb", "test/test_helper.rb", "Manifest"]
13
+ s.files = ["History.txt", "lib/fluxapi/account.rb", "lib/fluxapi/asset.rb", "lib/fluxapi/assets.rb", "lib/fluxapi/base.rb", "lib/fluxapi/tag.rb", "lib/fluxapi/tags.rb", "lib/fluxapi/user.rb", "lib/fluxapi/users.rb", "lib/fluxapi.rb", "Manifest", "Rakefile", "README.txt", "test/fixtures/account.xml", "test/fixtures/assets.xml", "test/fixtures/tags.xml", "test/fixtures/users.xml", "test/fluxapi/account_test.rb", "test/fluxapi/assets_test.rb", "test/fluxapi_test.rb", "test/test_helper.rb", "fluxapi.gemspec"]
14
14
  s.homepage = %q{http://fluxapi.rubyforge.org}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Fluxapi", "--main", "README.txt"]
16
16
  s.require_paths = ["lib"]
@@ -24,8 +24,11 @@ Gem::Specification.new do |s|
24
24
  s.specification_version = 3
25
25
 
26
26
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
+ s.add_runtime_dependency(%q<httparty>, [">= 0", "= 0.4.3"])
27
28
  else
29
+ s.add_dependency(%q<httparty>, [">= 0", "= 0.4.3"])
28
30
  end
29
31
  else
32
+ s.add_dependency(%q<httparty>, [">= 0", "= 0.4.3"])
30
33
  end
31
34
  end
@@ -5,6 +5,9 @@ class Fluxiom::Account < Fluxiom
5
5
  self.class.send(:define_method, k, proc{self.instance_variable_get("@#{k}")})
6
6
  end
7
7
  end
8
+ def assets
9
+ Fluxiom::Assets.new
10
+ end
8
11
  def has_branding?
9
12
  self.branding == 'active'
10
13
  end
@@ -5,7 +5,4 @@ class Fluxiom::Asset < Fluxiom
5
5
  self.class.send(:define_method, k, proc{self.instance_variable_get("@#{k}")})
6
6
  end
7
7
  end
8
- def tags
9
- self.tags.split(' ')
10
- end
11
8
  end
@@ -9,7 +9,4 @@ class Fluxiom::Users < Fluxiom
9
9
  def each
10
10
  @users.each {|pt| yield pt}
11
11
  end
12
- def find(id)
13
- @users.find{|u| u.id == id }
14
- end
15
12
  end
@@ -8,6 +8,9 @@ class FluxiomTest < Test::Unit::TestCase
8
8
 
9
9
  def test_base
10
10
  assert @fluxiom.account
11
+ assert @fluxiom.assets
12
+ assert @fluxiom.tags
13
+ assert @fluxiom.users
11
14
  end
12
15
 
13
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluxapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Sebastian Gr\xC3\xA4\xC3\x9Fl"
@@ -11,8 +11,20 @@ cert_chain: []
11
11
 
12
12
  date: 2009-05-06 00:00:00 +02:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: httparty
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ - - "="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.4.3
27
+ version:
16
28
  description: A fluxiom api wrapper for ruby
17
29
  email: sebastian.graessl@gmail.com
18
30
  executables: []
@@ -31,7 +43,6 @@ extra_rdoc_files:
31
43
  - lib/fluxapi.rb
32
44
  - README.txt
33
45
  files:
34
- - fluxapi.gemspec
35
46
  - History.txt
36
47
  - lib/fluxapi/account.rb
37
48
  - lib/fluxapi/asset.rb
@@ -42,6 +53,7 @@ files:
42
53
  - lib/fluxapi/user.rb
43
54
  - lib/fluxapi/users.rb
44
55
  - lib/fluxapi.rb
56
+ - Manifest
45
57
  - Rakefile
46
58
  - README.txt
47
59
  - test/fixtures/account.xml
@@ -52,7 +64,7 @@ files:
52
64
  - test/fluxapi/assets_test.rb
53
65
  - test/fluxapi_test.rb
54
66
  - test/test_helper.rb
55
- - Manifest
67
+ - fluxapi.gemspec
56
68
  has_rdoc: true
57
69
  homepage: http://fluxapi.rubyforge.org
58
70
  licenses: []