rawgento_models 0.1.1 → 0.2.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27a71f0dbd2d236f10b34c2ee3e93a6bb4ff57b2
|
4
|
+
data.tar.gz: c2d58b75a2b8f65fb650ae2e939a30b5c0e4f2b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7a152eadd781bdc9ae7e9ab7bd46ac572b501c1e543c3c56e299b22f35df1ff6ab38da2ff02df8e2ef79d45780d77c7934603df12a4186be0d2765ceb0efd04
|
7
|
+
data.tar.gz: 91dd90d1791dcb0c4914701f3ebb26e3ff16990557c9a138494c60cb3796b5d7c074e592805bc313ea966a3321d92912aaf7eea4a2224f35f1588caf32ccf5d9
|
data/README.md
CHANGED
@@ -27,25 +27,30 @@ Or install it yourself as:
|
|
27
27
|
|
28
28
|
$ bundle install
|
29
29
|
|
30
|
+
2. Add the db-specific tasks to your Rakefile.
|
31
|
+
|
30
32
|
# Rakefile
|
31
33
|
RawgentoModels.load_tasks
|
32
34
|
|
33
|
-
|
35
|
+
3. Configure your database
|
34
36
|
|
35
37
|
# db/config.yml as in a vanilla rails
|
36
38
|
adapter: ...
|
37
39
|
host: ...
|
38
40
|
#...
|
39
41
|
|
42
|
+
4. Setup your database
|
43
|
+
|
40
44
|
# TODO this does not yet work
|
41
45
|
rake db:migrate
|
42
46
|
|
43
|
-
|
47
|
+
5. Use Models in your application
|
44
48
|
|
45
49
|
# yourapp.rb
|
46
50
|
require 'rawgento_models'
|
47
51
|
|
48
52
|
RawgentoModels.establish_connection
|
53
|
+
# Or specify your configuration file
|
49
54
|
#RawgentoModels.establish_connection("alternative-config-file.yml")
|
50
55
|
|
51
56
|
RawgentoModels::LocalProducts.all
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rawgento_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Wolfsteller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- db/migrate/201602151400_create_supplier.rb
|
104
104
|
- db/migrate/201602151420_change_supplier_columns.rb
|
105
105
|
- db/migrate/201602151430_link_supplier.rb
|
106
|
+
- db/migrate/201605270920_change_local_product_shelve_column.rb
|
106
107
|
- db/schema.rb
|
107
108
|
- exe/rawgento_models
|
108
109
|
- lib/rawgento_models.rb
|