djatoka 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ begin
16
16
  #gem.add_dependency "curb", ">= 0"
17
17
  gem.add_dependency "json", ">= 0"
18
18
  gem.add_dependency 'trollop', '>= 0'
19
- gem.add_dependency 'mash', '>= 0'
19
+ gem.add_dependency 'hashie', '>= 0'
20
20
  gem.files = FileList["[A-Z]*", "{bin,generators,lib}/**/*"]
21
21
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
22
22
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -55,7 +55,7 @@ class Djatoka::Metadata
55
55
  # to determine these other levels ourself.
56
56
  def all_levels
57
57
  perform if !response # if we haven't already performed the metadata query do it now
58
- levels_hash = Mash.new
58
+ levels_hash = Hashie::Mash.new
59
59
  dwt_levels_i = dwt_levels.to_i
60
60
  (0..dwt_levels_i).each do |level_num|
61
61
  level_height = height.to_i
@@ -27,7 +27,7 @@ class Djatoka::Region
27
27
  @resolver = resolver
28
28
  end
29
29
  @rft_id = rft_id
30
- @query = Mash.new
30
+ @query = Hashie::Mash.new
31
31
  unless params.empty?
32
32
  map_params(params)
33
33
  end
@@ -46,7 +46,7 @@ class Djatoka::Resolver
46
46
  m_url = ping_url(rft_id)
47
47
  response = get_json(m_url)
48
48
  if response
49
- Mash.new(response)
49
+ Hashie::Mash.new(response)
50
50
  else
51
51
  response
52
52
  end
data/lib/djatoka.rb CHANGED
@@ -62,7 +62,7 @@ require 'rubygems'
62
62
  require 'addressable/uri'
63
63
  require 'addressable/template'
64
64
  require 'json'
65
- require 'mash'
65
+ require 'hashie'
66
66
 
67
67
 
68
68
  if defined? Rails
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djatoka
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
  - Jason Ronallo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-07-15 00:00:00 -04:00
12
+ date: 2010-07-28 00:00:00 -04:00
13
13
  default_executable: djatoka_url
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -63,7 +63,7 @@ dependencies:
63
63
  version: "0"
64
64
  version:
65
65
  - !ruby/object:Gem::Dependency
66
- name: mash
66
+ name: hashie
67
67
  type: :runtime
68
68
  version_requirement:
69
69
  version_requirements: !ruby/object:Gem::Requirement