happy_farm_models 0.0.1

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,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in happy_farm_models.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "happy_farm_models/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "happy_farm_models"
7
+ s.version = HappyFarmModels::VERSION
8
+ s.authors = ["Dean Lin"]
9
+ s.email = ["dean.lin@iscreen.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Write a gem summary}
12
+ s.description = %q{Write a gem description}
13
+
14
+ s.rubyforge_project = "happy_farm_models"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ # specify any dependencies here; for example:
22
+ # s.add_development_dependency "rspec"
23
+ # s.add_runtime_dependency "rest-client"
24
+ #
25
+ s.add_dependency 'activesupport', ['~> 3.0.7']
26
+ s.add_dependency 'rails', ['~> 3.0.7']
27
+ s.add_dependency 'bundler', ['>= 1.0.0']
28
+ end
@@ -0,0 +1,3 @@
1
+ # -*- encoding: utf-8 -*-
2
+ class Job < ActiveRecord::Base
3
+ end
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Dir.glob(File.join(File.dirname(__FILE__), 'app', 'models', '*.rb')).sort.each do |f|
4
+ require f
5
+ end
6
+
7
+ %w{ models controllers helpers }.each do |dir|
8
+ path = File.join(File.dirname(__FILE__), 'app', dir)
9
+ $LOAD_PATH << path
10
+ puts "Adding #{path}"
11
+ begin
12
+ if ActiveSupport::Dependencies.respond_to? :autoload_paths
13
+ ActiveSupport::Dependencies.autoload_paths << path
14
+ ActiveSupport::Dependencies.autoload_once_paths.delete(path)
15
+ else
16
+ ActiveSupport::Dependencies.load_paths << path
17
+ ActiveSupport::Dependencies.load_once_paths.delete(path)
18
+ end
19
+ rescue NameError
20
+ Dependencies.load_paths << path
21
+ Dependencies.load_once_paths.delete(path)
22
+ end
23
+ end
24
+
@@ -0,0 +1,4 @@
1
+ # -*- encoding: utf-8 -*-
2
+ module HappyFarmModels
3
+ VERSION = "0.0.1"
4
+ end
@@ -0,0 +1,5 @@
1
+ require "happy_farm_models/version"
2
+
3
+ module HappyFarmModels
4
+ # Your code goes here...
5
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: happy_farm_models
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Dean Lin
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-11-22 00:00:00 +08:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: activesupport
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 9
30
+ segments:
31
+ - 3
32
+ - 0
33
+ - 7
34
+ version: 3.0.7
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: rails
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 9
46
+ segments:
47
+ - 3
48
+ - 0
49
+ - 7
50
+ version: 3.0.7
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: bundler
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 23
62
+ segments:
63
+ - 1
64
+ - 0
65
+ - 0
66
+ version: 1.0.0
67
+ type: :runtime
68
+ version_requirements: *id003
69
+ description: Write a gem description
70
+ email:
71
+ - dean.lin@iscreen.com
72
+ executables: []
73
+
74
+ extensions: []
75
+
76
+ extra_rdoc_files: []
77
+
78
+ files:
79
+ - .gitignore
80
+ - Gemfile
81
+ - Rakefile
82
+ - happy_farm_models.gemspec
83
+ - lib/happy_farm_models.rb
84
+ - lib/happy_farm_models/app/models/job.rb
85
+ - lib/happy_farm_models/happy_farm_models.rb
86
+ - lib/happy_farm_models/version.rb
87
+ has_rdoc: true
88
+ homepage: ""
89
+ licenses: []
90
+
91
+ post_install_message:
92
+ rdoc_options: []
93
+
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ hash: 3
102
+ segments:
103
+ - 0
104
+ version: "0"
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ hash: 3
111
+ segments:
112
+ - 0
113
+ version: "0"
114
+ requirements: []
115
+
116
+ rubyforge_project: happy_farm_models
117
+ rubygems_version: 1.5.2
118
+ signing_key:
119
+ specification_version: 3
120
+ summary: Write a gem summary
121
+ test_files: []
122
+