bitrix_on_rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,18 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require 'helper'
2
3
 
3
4
  class TestBitrixOnRails < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
5
+ should "автоматичеки создает модели свойств для всех инфоблоков при инициализации" do
6
+ assert_equal 2, BitrixOnRails.init.count, '2 инфоблока в нашей схеме'
7
+ # assert defined?(IblockElementPropM7), 'должен определиться автоматически'
8
+ puts IblockElementPropM7
9
+ end
10
+
11
+ should "" do
6
12
  end
7
13
  end
14
+
15
+
16
+ # При инициализации создаются модели для всех инфоблоков
17
+ # При использовании IblockElement можно работать со свойствами
18
+ # Пожно подключать Инфоблок через has_infoblock к модели
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.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-02 00:00:00.000000000 +04:00
12
+ date: 2011-08-03 00:00:00.000000000 +04:00
13
13
  default_executable:
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rails
17
+ requirement: &2156494520 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *2156494520
26
+ - !ruby/object:Gem::Dependency
27
+ name: sqlite3
28
+ requirement: &2156493420 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *2156493420
15
37
  - !ruby/object:Gem::Dependency
16
38
  name: shoulda
17
- requirement: &2155963360 !ruby/object:Gem::Requirement
39
+ requirement: &2156486120 !ruby/object:Gem::Requirement
18
40
  none: false
19
41
  requirements:
20
42
  - - ! '>='
@@ -22,10 +44,10 @@ dependencies:
22
44
  version: '0'
23
45
  type: :development
24
46
  prerelease: false
25
- version_requirements: *2155963360
47
+ version_requirements: *2156486120
26
48
  - !ruby/object:Gem::Dependency
27
49
  name: bundler
28
- requirement: &2155961880 !ruby/object:Gem::Requirement
50
+ requirement: &2156484540 !ruby/object:Gem::Requirement
29
51
  none: false
30
52
  requirements:
31
53
  - - ~>
@@ -33,10 +55,10 @@ dependencies:
33
55
  version: 1.0.0
34
56
  type: :development
35
57
  prerelease: false
36
- version_requirements: *2155961880
58
+ version_requirements: *2156484540
37
59
  - !ruby/object:Gem::Dependency
38
60
  name: jeweler
39
- requirement: &2155956440 !ruby/object:Gem::Requirement
61
+ requirement: &2156483240 !ruby/object:Gem::Requirement
40
62
  none: false
41
63
  requirements:
42
64
  - - ~>
@@ -44,10 +66,76 @@ dependencies:
44
66
  version: 1.6.4
45
67
  type: :development
46
68
  prerelease: false
47
- version_requirements: *2155956440
69
+ version_requirements: *2156483240
48
70
  - !ruby/object:Gem::Dependency
49
71
  name: rcov
50
- requirement: &2155954900 !ruby/object:Gem::Requirement
72
+ requirement: &2156481680 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: *2156481680
81
+ - !ruby/object:Gem::Dependency
82
+ name: ruby-debug19
83
+ requirement: &2156480520 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: *2156480520
92
+ - !ruby/object:Gem::Dependency
93
+ name: test-unit
94
+ requirement: &2156474660 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: *2156474660
103
+ - !ruby/object:Gem::Dependency
104
+ name: rb-fsevent
105
+ requirement: &2156473280 !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: *2156473280
114
+ - !ruby/object:Gem::Dependency
115
+ name: growl
116
+ requirement: &2156470740 !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: *2156470740
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard-test
127
+ requirement: &2156467940 !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: *2156467940
136
+ - !ruby/object:Gem::Dependency
137
+ name: test-unit-rr
138
+ requirement: &2156466400 !ruby/object:Gem::Requirement
51
139
  none: false
52
140
  requirements:
53
141
  - - ! '>='
@@ -55,7 +143,7 @@ dependencies:
55
143
  version: '0'
56
144
  type: :development
57
145
  prerelease: false
58
- version_requirements: *2155954900
146
+ version_requirements: *2156466400
59
147
  description: Использование инфоблоков 1С-Битрикс в Ruby On Rails проектах
60
148
  email: danil@orionet.ru
61
149
  executables: []
@@ -67,6 +155,7 @@ files:
67
155
  - .document
68
156
  - Gemfile
69
157
  - Gemfile.lock
158
+ - Guardfile
70
159
  - LICENSE.txt
71
160
  - README.rdoc
72
161
  - Rakefile
@@ -89,7 +178,10 @@ files:
89
178
  - lib/bitrix_on_rails/engine.rb
90
179
  - lib/bitrix_on_rails/iblock_element_prop_m.rb
91
180
  - lib/bitrix_on_rails/iblock_element_prop_s.rb
181
+ - test/dump.sql
182
+ - test/get_dump.sh
92
183
  - test/helper.rb
184
+ - test/schema.rb
93
185
  - test/test_bitrix_on_rails.rb
94
186
  has_rdoc: true
95
187
  homepage: http://github.com/dapi/bitrix_on_rails
@@ -107,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
199
  version: '0'
108
200
  segments:
109
201
  - 0
110
- hash: 1892209005097066729
202
+ hash: -1313251524950627050
111
203
  required_rubygems_version: !ruby/object:Gem::Requirement
112
204
  none: false
113
205
  requirements: