ruby-ext 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/.git/COMMIT_EDITMSG CHANGED
@@ -1 +1 @@
1
- small upd
1
+ fix passenger issue
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -7,3 +7,4 @@ e9d385c1913656b7ce15a1ac1424361d2e065a6c 06864a068d188ab7ae17e39d58d6c25dc49a8ff
7
7
  06864a068d188ab7ae17e39d58d6c25dc49a8ff3 006a9c4671a6d1386f7d7dc800525e98697625ee Alex <alex@alex.local> 1260535122 +0300 commit: add facets
8
8
  006a9c4671a6d1386f7d7dc800525e98697625ee e903ba4c283cd16c7291500d4f80da24c8f5f4df Alex <alex@alex.local> 1260655428 +0300 commit: add facets & small fix
9
9
  e903ba4c283cd16c7291500d4f80da24c8f5f4df 97260e66124380267a414850b1d648da79324455 Alex <alex@alex.local> 1261874167 +0300 commit: small upd
10
+ 97260e66124380267a414850b1d648da79324455 f1eed82f16b829cf1f72f89142b089f43f99eda7 Alex <alex@alex.local> 1262042917 +0300 commit: fix passenger issue
@@ -7,3 +7,4 @@ e9d385c1913656b7ce15a1ac1424361d2e065a6c 06864a068d188ab7ae17e39d58d6c25dc49a8ff
7
7
  06864a068d188ab7ae17e39d58d6c25dc49a8ff3 006a9c4671a6d1386f7d7dc800525e98697625ee Alex <alex@alex.local> 1260535122 +0300 commit: add facets
8
8
  006a9c4671a6d1386f7d7dc800525e98697625ee e903ba4c283cd16c7291500d4f80da24c8f5f4df Alex <alex@alex.local> 1260655428 +0300 commit: add facets & small fix
9
9
  e903ba4c283cd16c7291500d4f80da24c8f5f4df 97260e66124380267a414850b1d648da79324455 Alex <alex@alex.local> 1261874167 +0300 commit: small upd
10
+ 97260e66124380267a414850b1d648da79324455 f1eed82f16b829cf1f72f89142b089f43f99eda7 Alex <alex@alex.local> 1262042917 +0300 commit: fix passenger issue
@@ -6,3 +6,4 @@ e9d385c1913656b7ce15a1ac1424361d2e065a6c 06864a068d188ab7ae17e39d58d6c25dc49a8ff
6
6
  06864a068d188ab7ae17e39d58d6c25dc49a8ff3 006a9c4671a6d1386f7d7dc800525e98697625ee Alex <alex@alex.local> 1260535716 +0300 update by push
7
7
  006a9c4671a6d1386f7d7dc800525e98697625ee e903ba4c283cd16c7291500d4f80da24c8f5f4df Alex <alex@alex.local> 1260655434 +0300 update by push
8
8
  e903ba4c283cd16c7291500d4f80da24c8f5f4df 97260e66124380267a414850b1d648da79324455 Alex <alex@alex.local> 1261874172 +0300 update by push
9
+ 97260e66124380267a414850b1d648da79324455 f1eed82f16b829cf1f72f89142b089f43f99eda7 Alex <alex@alex.local> 1262042923 +0300 update by push
@@ -0,0 +1,4 @@
1
+ xmRMo�@���%V�������ƻ�x�z�̮ۘ4���M�V��7_o޾q������X���x�m�RN��X���u�m �2����g�8t$SoE$��o�(<��~]>Y��X9��ü��y�^|�+������C��&w������F���a������f��V**�����90�KXP敡�Ծ$HY�էL�s��N�ݬ���W��"׿H��Ϣ�ƃ�{�������,����m�>� �'[��+��d�M��w7_�L���m�O��������dz2ܓD
2
+ ��c7R9G���4Zt(X�:���9(�p�C��ـ��?���n"�T�qq�ESz�� �Q����1F�
3
+ G�����b�1�^-^�l�w>譽D�������1�J�z4t����\n
4
+ ��/F��{
@@ -0,0 +1,3 @@
1
+ x���J1ƽn��j��E� U�P�%��uC��2�Z�>��m�*�2��������
2
+ ��'�U!��X�{�F ��
3
+ `i�xj� & ��X��(�^��:�Wz��s\!�*"�-(��j�4z�*m"F54
@@ -0,0 +1,2 @@
1
+ x��M
2
+ �0@a�9E��L&�i"z�q:�B��I���s7o������ǀ�����c�X"���(+G�ŢE� &U��"�=�/2s@��;�@9�5�L���D$J������/���Q>=s�f���2a ��Cp��j��p����j�ۇ��n�ޔv@e
@@ -1 +1 @@
1
- 97260e66124380267a414850b1d648da79324455
1
+ f1eed82f16b829cf1f72f89142b089f43f99eda7
@@ -1 +1 @@
1
- 97260e66124380267a414850b1d648da79324455
1
+ f1eed82f16b829cf1f72f89142b089f43f99eda7
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ require 'fileutils'
18
18
 
19
19
  spec = Gem::Specification.new do |s|
20
20
  s.name = "ruby-ext"
21
- s.version = "0.2.1"
21
+ s.version = "0.2.2"
22
22
  s.summary = "Set of common Ruby language extensions"
23
23
  s.description = "Set of common Ruby language extensions"
24
24
  s.author = "Alexey Petrushin"
data/lib/ruby_ext/file.rb CHANGED
@@ -1,16 +1,22 @@
1
1
  class File
2
2
  class << self
3
- def write(path, data)
4
- File.open(path, "wb") do |file|
5
- return file.write(data)
6
- end
7
- end
8
-
9
- def read(path)
10
- File.open(path, "rb") do |file|
11
- return file.read
12
- end
13
- end
3
+
4
+ # There is similar methods in ActiveSupport, that takes also second paramether buffer
5
+ # these methods 'as is' will broken rails app with passenger in production.
6
+ #
7
+ # def write(path, data)
8
+ # File.open(path, "wb") do |file|
9
+ # return file.write(data)
10
+ # end
11
+ # end
12
+ #
13
+ # def read(path)
14
+ # File.open(path, "rb") do |file|
15
+ # return file.read
16
+ # end
17
+ # end
18
+
19
+
14
20
 
15
21
  def create_directory dir
16
22
  Dir.mkdir dir unless File.exist? dir
data/lib/ruby_ext.rb CHANGED
@@ -29,7 +29,6 @@ more = [
29
29
 
30
30
  should
31
31
  declarative_cache
32
- file
33
32
  open_constructor
34
33
  prepare_arguments
35
34
  synchronizer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Petrushin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-27 00:00:00 +03:00
12
+ date: 2009-12-29 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -102,6 +102,7 @@ files:
102
102
  - .git/objects/59/653cefe5b174e4a7002100f024448cdb337373
103
103
  - .git/objects/5c/28c251bb201232470340d73ed4cc4926cd241d
104
104
  - .git/objects/5c/536c5d712f7cf34e21be5526aa3e826888810f
105
+ - .git/objects/5d/281b39340e5d448c63c8f439c9ca4035ccaf66
105
106
  - .git/objects/5d/37379f1b929c7b82f96382fc256895a50e97fd
106
107
  - .git/objects/60/a681e873ca0ae0b7da3f37dbc5701f6e42b970
107
108
  - .git/objects/61/d4509b8fc63e53b8e5d417ace33919e8a7a8f2
@@ -121,7 +122,10 @@ files:
121
122
  - .git/objects/97/260e66124380267a414850b1d648da79324455
122
123
  - .git/objects/9c/d9497bad03afd65531dda2695719b3593e02b6
123
124
  - .git/objects/9e/a37d9fc7e1ad1504b50da2a1ec639c523fb8b7
125
+ - .git/objects/9f/9a4ebb6d3b4f75ebebc57119b2cf61606d4685
124
126
  - .git/objects/a4/ab487fcb12cfb831b09c525544f52d60a98598
127
+ - .git/objects/a4/d0f078375c5b39cee3083ad428912698777c7b
128
+ - .git/objects/a9/2112f979b22837fa6d3d39829eff7c3fd34947
125
129
  - .git/objects/ab/daaab37771475482389bdfcb2021b1651ba399
126
130
  - .git/objects/ad/09237b6008fc0ebfb9b8c920490dda8503bfd1
127
131
  - .git/objects/ad/7462077a480cb995d1ad397c3c737644e59887
@@ -129,6 +133,7 @@ files:
129
133
  - .git/objects/b4/cbb05893636d6b7314fbc4df7e3a8dcaeb0de1
130
134
  - .git/objects/b6/17a8cc2ae7f6ea496051db493aa56edc178073
131
135
  - .git/objects/b6/863b5d4c0a4d87b81a9bbc29e786fcf7ef0df2
136
+ - .git/objects/b8/c374e1a9042d9c4a478bee2c2b5b469aba55d6
132
137
  - .git/objects/bc/ee5c51061bdb9ab5a5aea4f00245a8ab3689b2
133
138
  - .git/objects/be/a9ade8ddb19a7ff5b18bc77fac5cb27d6cf284
134
139
  - .git/objects/c3/faad9ba42388a50a57acf9df88f6d2a64a4122
@@ -137,6 +142,7 @@ files:
137
142
  - .git/objects/d2/366fe2df53e14c3069d23cad37fe21a8f1c129
138
143
  - .git/objects/d4/8b935ca7e38d2434ceb1711544293f4baf8203
139
144
  - .git/objects/dd/e851a435431f0c03b12f7a9ca6e5dd5ce80617
145
+ - .git/objects/e0/79f0e8854797974df458de31b88bb8b4b0fdbf
140
146
  - .git/objects/e0/c54997bfab8a0bf135d0de79ddee431b9112ad
141
147
  - .git/objects/e9/03ba4c283cd16c7291500d4f80da24c8f5f4df
142
148
  - .git/objects/e9/d385c1913656b7ce15a1ac1424361d2e065a6c
@@ -144,6 +150,7 @@ files:
144
150
  - .git/objects/f0/f0c35fd385e1ac016e6d3f7d72ea188c578b77
145
151
  - .git/objects/f1/2346269ed5287267f0271f57546291c013b318
146
152
  - .git/objects/f1/bf0dc44ec7b29845cdecd0b295aa8075a84940
153
+ - .git/objects/f1/eed82f16b829cf1f72f89142b089f43f99eda7
147
154
  - .git/objects/f3/655e33b96e5b8b25990a2ae88fcdfed415074b
148
155
  - .git/objects/f7/c0fa5621b81aca548c738c08907055696e1956
149
156
  - .git/objects/f8/c960b12cbddb90f18123673e6778efdc822058