Skip to content

Commit

Permalink
remove nokogiri from dependences, bump 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxa committed Jan 16, 2012
1 parent 2bc84b6 commit ffc7418
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 23 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source :rubygems
gemspec
gem "mida", git: 'git@github.com:Paxa/mida.git', ref: '7db7149a2cf'
gem "rails", "3.2.0.rc2"
gem 'chronic_duration', git: 'git://github.com/Paxa/chronic_duration.git', ref: '8c0d0e101b'
gem 'chronic_duration', git: 'git://github.com/Paxa/chronic_duration.git', ref: '8c0d0e101b'
3 changes: 2 additions & 1 deletion Gemfile.haml-edge
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source :rubygems
gemspec
gem "haml", git: "https://github.com/nex3/haml.git", ref: "fbb1354de97e"
gem "haml", git: "https://github.com/nex3/haml.git", ref: "630b8fe2033e6"
gem "mida", git: 'git@github.com:Paxa/mida.git', ref: '7db7149a2cf'
gem 'chronic_duration', git: 'git://github.com/Paxa/chronic_duration.git', ref: '8c0d0e101b'
15 changes: 12 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@ GIT
chronic_duration (0.9.6)
numerizer (~> 0.1.1)

GIT
remote: git@github.com:Paxa/mida.git
revision: 7db7149a2cf7d60bb4b570ce89094b56d86642af
ref: 7db7149a2cf
specs:
mida (0.3.4)
mida_vocabulary (>= 0.1)
nokogiri (>= 1.5)

PATH
remote: .
specs:
green_monkey (0.1.1)
chronic_duration
haml (>= 3.1.0)
mida (>= 0.3.3)
mida_vocabulary (>= 0.1)
rails (>= 3.0.0)

GEM
Expand Down Expand Up @@ -59,9 +68,8 @@ GEM
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mida (0.3.3)
mida_vocabulary (0.1)
blankslate
nokogiri (>= 1.5)
mime-types (1.17.2)
multi_json (1.0.4)
nokogiri (1.5.0)
Expand Down Expand Up @@ -124,6 +132,7 @@ DEPENDENCIES
bundler (>= 1.0.0)
chronic_duration!
green_monkey!
mida!
rails (= 3.2.0.rc2)
rspec (>= 2.7.0)
rspec-rails
Expand Down
1 change: 1 addition & 0 deletions Gemfile.rails-3.0.11
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source :rubygems
gemspec
gem "rails", "3.0.11"
gem "mida", git: 'git@github.com:Paxa/mida.git', ref: '7db7149a2cf'
gem 'chronic_duration', git: 'git://github.com/Paxa/chronic_duration.git', ref: '8c0d0e101b'
1 change: 1 addition & 0 deletions Gemfile.rails-3.1.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source :rubygems
gemspec
gem "rails", "3.1.3"
gem "mida", git: 'git@github.com:Paxa/mida.git', ref: '7db7149a2cf'
gem 'chronic_duration', git: 'git://github.com/Paxa/chronic_duration.git', ref: '8c0d0e101b'
1 change: 1 addition & 0 deletions Gemfile.rails-3.2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source :rubygems
gemspec
gem "rails", "3.2.0.rc2"
gem "mida", git: 'git@github.com:Paxa/mida.git', ref: '7db7149a2cf'
gem 'chronic_duration', git: 'git://github.com/Paxa/chronic_duration.git', ref: '8c0d0e101b'
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ This Gem allows you to make html-layout with microdata properties easier. It wor
Add to Gemfile

```ruby
gem "green_monkey"
gem "green_monkey", '0.1.2'
gem "mida", git: 'git@github.com:Paxa/mida.git', ref: '7db7149a2cf'
gem 'chronic_duration', git: 'git://github.com/Paxa/chronic_duration.git', ref: '8c0d0e101b'
```

## Examples
Expand Down Expand Up @@ -45,7 +47,7 @@ The same with `time_tag` but made for time intervals
```

```html
<time datetime="1879-03-14T00:00:00+07:30/1955-04-18T00:00:00+07:30">14 Mar 1879 - 14 Mar 1879</time>
<time datetime="1879-03-14T00:00:00+07:30/1955-04-18T00:00:00+07:30">14 Mar 1879 - 18 Apr 1879</time>
<time datetime="1989-05-06T00:00:00+08:00/P6DT6H">06 May 00:00 in 6d 6h</time>
```

Expand Down
5 changes: 3 additions & 2 deletions green_monkey.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = "green_monkey"
s.version = '0.1.1'
s.version = '0.1.2'
s.platform = Gem::Platform::RUBY
s.authors = ["Pavel Evstigneev"]
s.email = ["pavel.evst@gmail.com"]
Expand All @@ -14,12 +14,13 @@ Gem::Specification.new do |s|

s.add_runtime_dependency 'rails', '>= 3.0.0'
s.add_runtime_dependency 'haml', '>= 3.1.0'
s.add_runtime_dependency 'mida', '>= 0.3.3'
s.add_runtime_dependency 'mida_vocabulary', '>= 0.1'
s.add_runtime_dependency 'chronic_duration'

s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency "rspec", ">= 2.7.0"
s.add_development_dependency "rspec-rails"
s.add_development_dependency "mida"
s.add_development_dependency 'sqlite3'

s.files = `git ls-files`.split("\n")
Expand Down
15 changes: 1 addition & 14 deletions lib/green_monkey/ext/mida.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "mida"
require "mida_vocabulary"

class Mida::Vocabulary::Custom < Mida::Vocabulary
attr_reader :itemtype
Expand All @@ -25,19 +25,6 @@ def Mida(itemtype, addition = nil)
end
end

class Mida::Vocabulary

# this dutty hack fix some strange bug then
# Mida::Vocabulary.find "http://schema.org/BlogPosting"
# => Mida::SchemaOrg::Blog
def self.find(itemtype)
@vocabularies.sort_by {|v| v.itemtype ? v.itemtype.source.size : 0 }.reverse.each do |vocabulary|
if ((itemtype || "") =~ vocabulary.itemtype) then return vocabulary end
end
nil
end
end

require "uri"

module URI
Expand Down
1 change: 1 addition & 0 deletions spec/haml_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'spec_helper'
require "pathname"
require "mida"

$t = 0

Expand Down

0 comments on commit ffc7418

Please sign in to comment.