Skip to content

Commit

Permalink
Merge pull request #147 from ancorgs/fix_core_ext
Browse files Browse the repository at this point in the history
Fixes in the new Yast::CoreExt functionality
  • Loading branch information
ancorgs committed Jun 18, 2015
2 parents 06d926b + 236bb41 commit 453c4cf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-ruby-bindings.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jun 18 11:41:32 UTC 2015 - ancor@suse.com

- Fixes in the new Yast::CoreExt functionality (part of the fix
for bnc#921233)
- 3.1.36

-------------------------------------------------------------------
Wed Jun 17 16:45:11 UTC 2015 - ancor@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-ruby-bindings.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-ruby-bindings
Version: 3.1.35
Version: 3.1.36
Url: https://github.com/yast/yast-ruby-bindings
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
2 changes: 2 additions & 0 deletions src/ruby/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ add_definitions(-DY2LOG=\"Ruby\")

FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*/*.rb")
FILE(GLOB rspec "${CMAKE_CURRENT_SOURCE_DIR}/yast/rspec/*.rb")
FILE(GLOB core_ext "${CMAKE_CURRENT_SOURCE_DIR}/yast/core_ext/*.rb")
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/yast.rb DESTINATION ${RUBY_VENDORLIB_DIR} )
INSTALL(FILES ${files} DESTINATION ${RUBY_VENDORLIB_DIR}/yast)
INSTALL(FILES ${rspec} DESTINATION ${RUBY_VENDORLIB_DIR}/yast/rspec)
INSTALL(FILES ${core_ext} DESTINATION ${RUBY_VENDORLIB_DIR}/yast/core_ext)

2 changes: 1 addition & 1 deletion src/ruby/yast/core_ext/ansi_string.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Yast
module CoreExt
module AnsiString
refine String do
refine ::String do
# Removes color and cursor escape codes (modifying the string)
# http://en.wikipedia.org/wiki/ANSI_escape_code
def remove_ansi_sequences
Expand Down

0 comments on commit 453c4cf

Please sign in to comment.