Skip to content

Commit

Permalink
Removing language stuffs.
Browse files Browse the repository at this point in the history
We don't need to have this dependency, nor store this extra info per update, or anything else. We can always run a report later if we want to recollect.
  • Loading branch information
steveklabnik committed Sep 29, 2011
1 parent 733666b commit 4ad5700
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ gem "osub", "~>0.0.6"
gem "opub"
gem "redfinger"
gem "nokogiri"
gem "whatlanguage"
gem "ruby-stemmer"
gem "tzinfo"
gem "rsa"
gem "exceptional"
Expand Down
4 changes: 0 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ GEM
ruby-openid (2.1.8)
ruby-openid-apps-discovery (1.2.0)
ruby-openid (>= 2.1.7)
ruby-stemmer (0.9.1)
rubyntlm (0.1.1)
rubyzip (0.9.4)
sass (3.1.7)
Expand Down Expand Up @@ -304,7 +303,6 @@ GEM
webmock (1.6.4)
addressable (> 2.2.5, ~> 2.2)
crack (>= 0.1.7)
whatlanguage (1.0.0)
whenever (0.6.8)
aaronh-chronic (>= 0.3.9)
activesupport (>= 2.3.4)
Expand Down Expand Up @@ -347,7 +345,6 @@ DEPENDENCIES
redfinger
rocco
rsa
ruby-stemmer
sass-rails (~> 3.1.0)
simplecov (~> 0.4.0)
sinatra
Expand All @@ -358,5 +355,4 @@ DEPENDENCIES
unicorn
vcr
webmock
whatlanguage
whenever
8 changes: 0 additions & 8 deletions app/models/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class Update

# The following are extra features and identifications for the update
key :tags, Array, :default => []
key :language, String
key :twitter, Boolean
key :facebook, Boolean

Expand All @@ -36,9 +35,6 @@ class Update
# We also generate the tags upon editing the update
before_save :get_tags

# We determine and store the language used within this update
before_create :get_language

# Updates have a remote url that globally identifies them
key :remote_url, String

Expand Down Expand Up @@ -91,10 +87,6 @@ def get_tags
self[:tags] = self.text.scan(/#([\w\-\.]*)/).flatten
end

def get_language
self[:language] = self.text.language
end

# Return OStatus::Entry instance describing this Update
def to_atom(base_uri)
links = []
Expand Down
5 changes: 0 additions & 5 deletions test/models/update_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@
end
end

it "stores the language" do
u = Factory(:update, :text => "Als hadden geweest is, is hebben te laat.")
assert_equal "dutch", u.language
end

describe "twitter" do
describe "twitter => true" do
it "sets the tweeted flag" do
Expand Down

0 comments on commit 4ad5700

Please sign in to comment.