dancroak-webster 0.3.5 → 0.4.0

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.
Files changed (4) hide show
  1. data/README.textile +12 -2
  2. data/Rakefile +2 -2
  3. data/VERSION.yml +2 -2
  4. metadata +2 -2
data/README.textile CHANGED
@@ -11,11 +11,21 @@ h2. Usage
11
11
  require 'rubygems'
12
12
  require 'webster'
13
13
 
14
- @webster = Webster.new
15
- @webster.random
14
+ webster = Webster.new
15
+ webster.random
16
16
 
17
17
  => "spoonless"
18
18
 
19
+ h2. Shoulda macro
20
+
21
+ context "Subscription#activation_code" do
22
+ setup do
23
+ subscription = Factory :subscription
24
+ @word = subscription.set_activation_code
25
+ end
26
+
27
+ should_be_webster_word @word
28
+
19
29
  h2. Authors
20
30
 
21
31
  Webster was written for "Umbrella Today?":http://umbrellatoday.com by "thoughtbot":http://giantrobots.thoughtbot.com. It was extracted into a stand-alone Ruby gem by "Dan Croak":http://dancroak.com.
data/Rakefile CHANGED
@@ -15,14 +15,14 @@ task :default => :test
15
15
  begin
16
16
  require 'rubygems'
17
17
  require 'jeweler'
18
- Jeweler.gemspec = Gem::Specification.new do |s|
18
+ Jeweler::Tasks.new do |s|
19
19
  s.name = "webster"
20
20
  s.summary = "Generate random short words. Good for human-readable confirmation codes."
21
21
  s.email = "dcroak@thoughtbot.com"
22
22
  s.homepage = "http://github.com/dancroak/webster"
23
23
  s.description = "Generate random short words. Good for human-readable confirmation codes."
24
24
  s.authors = ["Dan Croak"]
25
- s.files = FileList["[A-Z]*", "{lib,test}/**/*"]
25
+ s.files = FileList["[A-Z]*", "{lib,test}/**/*"]
26
26
  end
27
27
  rescue LoadError
28
28
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- patch: 5
2
+ patch: 0
3
3
  major: 0
4
- minor: 3
4
+ minor: 4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dancroak-webster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-26 00:00:00 -07:00
12
+ date: 2008-11-28 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15