espresso 0.0.3 → 0.0.4

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/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ pkg
2
+ *.gem
data/Rakefile CHANGED
@@ -16,6 +16,7 @@ begin
16
16
  gem.add_dependency('mislav-will_paginate', '>= 2.3.11')
17
17
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
18
  end
19
+ Jeweler::GemcutterTasks.new
19
20
  rescue LoadError
20
21
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
21
22
  end
@@ -44,16 +45,11 @@ task :test => :check_dependencies
44
45
 
45
46
  task :default => :test
46
47
 
47
- require 'rake/rdoctask'
48
- Rake::RDocTask.new do |rdoc|
49
- if File.exist?('VERSION')
50
- version = File.read('VERSION')
51
- else
52
- version = ""
48
+ begin
49
+ require 'yard'
50
+ YARD::Rake::YardocTask.new
51
+ rescue LoadError
52
+ task :yardoc do
53
+ abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
53
54
  end
54
-
55
- rdoc.rdoc_dir = 'rdoc'
56
- rdoc.title = "espresso #{version}"
57
- rdoc.rdoc_files.include('README*')
58
- rdoc.rdoc_files.include('lib/**/*.rb')
59
55
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
data/espresso.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{espresso}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Semyonov"]
12
- s.date = %q{2009-08-17}
12
+ s.date = %q{2009-08-31}
13
13
  s.description = %q{Useful templates for controller and model functions}
14
14
  s.email = %q{rotuka@rotuka.com}
15
15
  s.extra_rdoc_files = [
@@ -17,15 +17,16 @@ Gem::Specification.new do |s|
17
17
  "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
- "LICENSE",
20
+ ".gitignore",
21
+ "LICENSE",
21
22
  "README.rdoc",
22
23
  "Rakefile",
23
24
  "VERSION",
24
25
  "espresso.gemspec",
25
26
  "init.rb",
26
27
  "lib/espresso.rb",
27
- "lib/espresso/controller.rb",
28
28
  "lib/espresso/model.rb",
29
+ "lib/espresso/objects_controller.rb",
29
30
  "test/espresso_test.rb",
30
31
  "test/test_helper.rb"
31
32
  ]
data/lib/espresso.rb CHANGED
@@ -1,2 +1,9 @@
1
1
  module Espresso
2
2
  end
3
+
4
+ require 'espresso/objects_controller'
5
+ require 'espresso/model'
6
+
7
+ if defined? Rails
8
+ ActiveRecord::Base.send :include, Espresso::Model if defined? ActiveRecord
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: espresso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Semyonov
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-17 00:00:00 +04:00
12
+ date: 2009-08-31 00:00:00 +04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -62,6 +62,7 @@ extra_rdoc_files:
62
62
  - LICENSE
63
63
  - README.rdoc
64
64
  files:
65
+ - .gitignore
65
66
  - LICENSE
66
67
  - README.rdoc
67
68
  - Rakefile
@@ -69,8 +70,8 @@ files:
69
70
  - espresso.gemspec
70
71
  - init.rb
71
72
  - lib/espresso.rb
72
- - lib/espresso/controller.rb
73
73
  - lib/espresso/model.rb
74
+ - lib/espresso/objects_controller.rb
74
75
  - test/espresso_test.rb
75
76
  - test/test_helper.rb
76
77
  has_rdoc: true