bitrix_on_rails 0.1.1 → 0.1.2

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/README.rdoc CHANGED
@@ -7,6 +7,15 @@ prop_s - для одиночных свойтсв, prop_m - для множес
7
7
  У каждого инфоблока нескоолько секций (iblock_section), в каждой секции несколько элементов (iblock_element) у каждого элемента разные свойства которые лежат в prop_s/_m.
8
8
  Соответсвенно я эти свойства вытащил в одно место - они все доступны из модели IblockElement. Или напрямую; IblockElement.find(123).НАЗВАНИЕ_СВОЙСТВА или через метод properties
9
9
 
10
+ == Установка
11
+
12
+ gem 'bitrix_on_rails'
13
+
14
+
15
+ В файл `config/initialize/bitrix_on_rails.rb` впишите:
16
+
17
+ BitrixOnRails.init
18
+
10
19
  == Что есть:
11
20
 
12
21
  === mysql2_downcase адаптер
@@ -75,12 +84,21 @@ prop_s - для одиночных свойтсв, prop_m - для множес
75
84
  encoding: cp1251
76
85
  ...
77
86
 
87
+ == TODO
88
+
89
+ * Больше примернов использования
90
+ * Спеки
91
+
78
92
  == Contributing to bitrix_on_rails
79
93
 
80
94
  * С нетерпением жду форков, пулеквестов, замечаний и предложений.
81
95
 
96
+ == Разработчики
97
+
98
+ Данил Письменный, Дмитрий Максимов
99
+
82
100
  == Copyright
83
101
 
84
- Copyright (c) 2011 Danil Pismenny. See LICENSE.txt for
102
+ Copyright (c) 2011 Red Green Development. See LICENSE.txt for
85
103
  further details.
86
104
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -100,9 +100,3 @@ class IblockElement < ActiveRecord::Base
100
100
  end
101
101
 
102
102
  end
103
-
104
-
105
- # Это здесь для того чтобы при перезагрузке в development
106
- # режиме заново создавались ассоциации iblock_element_prop_s3
107
- # TODO переделать на более элегантное решение
108
- Iblock.all.map &:init_property_models
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bitrix_on_rails}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Danil Pismenny"]
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
14
14
  s.email = %q{danil@orionet.ru}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
- "README",
18
17
  "README.rdoc"
19
18
  ]
20
19
  s.files = [
@@ -22,7 +21,6 @@ Gem::Specification.new do |s|
22
21
  "Gemfile",
23
22
  "Gemfile.lock",
24
23
  "LICENSE.txt",
25
- "README",
26
24
  "README.rdoc",
27
25
  "Rakefile",
28
26
  "VERSION",
@@ -1,7 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- IblockElement.class
4
-
5
3
  module BitrixOnRails
6
4
  module ActiveRecord
7
5
 
@@ -1,21 +1,20 @@
1
1
  # -*- coding: utf-8 -*-
2
- # require 'rails'
3
-
4
2
  module BitrixOnRails
3
+ def self.init
4
+ # Это здесь для того чтобы при перезагрузке в development
5
+ # режиме заново создавались ассоциации iblock_element_prop_s3
6
+ # TODO переделать на более элегантное решение
7
+ Iblock.all.map &:init_property_models
8
+ # IblockProperty.cache_all
9
+ end
5
10
  end
6
11
 
7
12
  require 'active_record'
8
-
13
+ require 'bitrix_on_rails/engine'
9
14
  require 'bitrix_on_rails/active_record'
10
15
  require 'bitrix_on_rails/iblock_element_prop_s'
11
16
  require 'bitrix_on_rails/iblock_element_prop_m'
12
- # require 'bitrix_on_rails/engine'
13
-
14
- # ActiveRecord::Base.connection.tables
15
17
 
16
18
  ActiveRecord::Base.extend BitrixOnRails::ActiveRecord
17
19
 
18
- # Просто подгружаем модель, тогда в ней появятся ассоциации типа iblock_element_prop_s3
19
- IblockElement.class
20
-
21
- # IblockProperty.cache_all
20
+ puts 'aaa'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitrix_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: shoulda
17
- requirement: &2155895220 !ruby/object:Gem::Requirement
17
+ requirement: &2152180000 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *2155895220
25
+ version_requirements: *2152180000
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &2155894360 !ruby/object:Gem::Requirement
28
+ requirement: &2152172800 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2155894360
36
+ version_requirements: *2152172800
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: jeweler
39
- requirement: &2155893580 !ruby/object:Gem::Requirement
39
+ requirement: &2152171680 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.6.4
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2155893580
47
+ version_requirements: *2152171680
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rcov
50
- requirement: &2155892440 !ruby/object:Gem::Requirement
50
+ requirement: &2152170820 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,21 +55,19 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2155892440
58
+ version_requirements: *2152170820
59
59
  description: Использование инфоблоков 1С-Битрикс в Ruby On Rails проектах
60
60
  email: danil@orionet.ru
61
61
  executables: []
62
62
  extensions: []
63
63
  extra_rdoc_files:
64
64
  - LICENSE.txt
65
- - README
66
65
  - README.rdoc
67
66
  files:
68
67
  - .document
69
68
  - Gemfile
70
69
  - Gemfile.lock
71
70
  - LICENSE.txt
72
- - README
73
71
  - README.rdoc
74
72
  - Rakefile
75
73
  - VERSION
@@ -109,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
107
  version: '0'
110
108
  segments:
111
109
  - 0
112
- hash: 3152042687155228433
110
+ hash: 2607024653027186635
113
111
  required_rubygems_version: !ruby/object:Gem::Requirement
114
112
  none: false
115
113
  requirements:
data/README DELETED
File without changes