file_utils 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/workspace.xml CHANGED
@@ -2,9 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="5aea4d68-4507-4177-a112-c280e0c8edfa" name="Default" comment="">
5
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/file_utils.rb" />
6
5
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
7
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/file_utils/version.rb" afterPath="$PROJECT_DIR$/lib/file_utils/version.rb" />
8
6
  </list>
9
7
  <ignored path="file_utils.iws" />
10
8
  <ignored path=".idea/workspace.xml" />
@@ -26,28 +24,19 @@
26
24
  </component>
27
25
  <component name="FileEditorManager">
28
26
  <leaf>
29
- <file leaf-file-name="file_utils.rb" pinned="false" current="false" current-in-tab="false">
27
+ <file leaf-file-name="file_utils.rb" pinned="false" current="true" current-in-tab="true">
30
28
  <entry file="file://$PROJECT_DIR$/lib/file_utils/file_utils.rb">
31
29
  <provider selected="true" editor-type-id="text-editor">
32
- <state line="68" column="2" selection-start="1244" selection-end="1244" vertical-scroll-proportion="0.0">
30
+ <state line="68" column="32" selection-start="1244" selection-end="1244" vertical-scroll-proportion="1.1648822">
33
31
  <folding />
34
32
  </state>
35
33
  </provider>
36
34
  </entry>
37
35
  </file>
38
- <file leaf-file-name="file_utils.rb" pinned="false" current="false" current-in-tab="false">
39
- <entry file="file://$PROJECT_DIR$/lib/file_utils.rb">
40
- <provider selected="true" editor-type-id="text-editor">
41
- <state line="1" column="0" selection-start="32" selection-end="32" vertical-scroll-proportion="0.0">
42
- <folding />
43
- </state>
44
- </provider>
45
- </entry>
46
- </file>
47
- <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
36
+ <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
48
37
  <entry file="file://$PROJECT_DIR$/lib/file_utils/version.rb">
49
38
  <provider selected="true" editor-type-id="text-editor">
50
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.025931928">
39
+ <state line="3" column="59" selection-start="41" selection-end="41" vertical-scroll-proportion="0.0">
51
40
  <folding />
52
41
  </state>
53
42
  </provider>
@@ -387,7 +376,6 @@
387
376
  <frame x="240" y="142" width="1588" height="1058" extended-state="0" />
388
377
  <editor active="true" />
389
378
  <layout>
390
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
391
379
  <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
392
380
  <window_info id="CSS-X-Fire" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
393
381
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
@@ -403,6 +391,7 @@
403
391
  <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
404
392
  <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
405
393
  <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
394
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
406
395
  <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
407
396
  <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
408
397
  <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
@@ -539,23 +528,23 @@
539
528
  </state>
540
529
  </provider>
541
530
  </entry>
542
- <entry file="file://$PROJECT_DIR$/lib/file_utils/file_utils.rb">
531
+ <entry file="file://$PROJECT_DIR$/lib/file_utils/version.rb">
543
532
  <provider selected="true" editor-type-id="text-editor">
544
- <state line="68" column="2" selection-start="1244" selection-end="1244" vertical-scroll-proportion="0.0">
533
+ <state line="3" column="59" selection-start="41" selection-end="41" vertical-scroll-proportion="0.0">
545
534
  <folding />
546
535
  </state>
547
536
  </provider>
548
537
  </entry>
549
538
  <entry file="file://$PROJECT_DIR$/lib/file_utils.rb">
550
539
  <provider selected="true" editor-type-id="text-editor">
551
- <state line="1" column="0" selection-start="32" selection-end="32" vertical-scroll-proportion="0.0">
540
+ <state line="1" column="0" selection-start="32" selection-end="32" vertical-scroll-proportion="0.01713062">
552
541
  <folding />
553
542
  </state>
554
543
  </provider>
555
544
  </entry>
556
- <entry file="file://$PROJECT_DIR$/lib/file_utils/version.rb">
545
+ <entry file="file://$PROJECT_DIR$/lib/file_utils/file_utils.rb">
557
546
  <provider selected="true" editor-type-id="text-editor">
558
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.025931928">
547
+ <state line="68" column="32" selection-start="1244" selection-end="1244" vertical-scroll-proportion="1.1648822">
559
548
  <folding />
560
549
  </state>
561
550
  </provider>
@@ -51,6 +51,12 @@ module FileUtils
51
51
  template.result(binding)
52
52
  end
53
53
 
54
+ def execute command
55
+ IO.popen(command).each_line do |line|
56
+ puts line
57
+ end
58
+ end
59
+
54
60
  def execute_command(command)
55
61
  output = nil
56
62
  error = nil
@@ -1,3 +1,3 @@
1
1
  module FileUtils
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-16 00:00:00.000000000 Z
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Collection of methods to work with files and directories
15
15
  email: alexander.shvets@gmail.com
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  requirements: []
63
63
  rubyforge_project:
64
- rubygems_version: 1.8.23
64
+ rubygems_version: 1.8.24
65
65
  signing_key:
66
66
  specification_version: 3
67
67
  summary: Collection of methods to work with files and directories